mirror of
https://github.com/wiiu-env/MochaPayload.git
synced 2024-11-21 23:49:15 +01:00
ios_mcp: Add DLP permission group to all titles
This allows usage of nn_dlp from homebrew.
This commit is contained in:
parent
26d7d87699
commit
1a9acbd3b7
@ -515,8 +515,16 @@ int _MCP_ReadCOSXml_patch(uint32_t u1, uint32_t u2, MCPPPrepareTitleInfo *xmlDat
|
|||||||
xmlData->avail_size = 0;
|
xmlData->avail_size = 0;
|
||||||
xmlData->overlay_arena = 0;
|
xmlData->overlay_arena = 0;
|
||||||
|
|
||||||
|
bool dlpPatched = false;
|
||||||
|
|
||||||
// Give us full permissions everywhere
|
// Give us full permissions everywhere
|
||||||
for (uint32_t i = 0; i < 19; i++) {
|
for (uint32_t i = 0; i < 19; i++) {
|
||||||
|
// Add DLP permission group to all titles
|
||||||
|
if (!dlpPatched && xmlData->permissions[i].group == 0) {
|
||||||
|
xmlData->permissions[i].group = 25; // DLP
|
||||||
|
dlpPatched = true;
|
||||||
|
}
|
||||||
|
|
||||||
xmlData->permissions[i].mask = 0xFFFFFFFFFFFFFFFF;
|
xmlData->permissions[i].mask = 0xFFFFFFFFFFFFFFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user