ios_mcp: Add DLP permission group to all titles

This allows usage of nn_dlp from homebrew.
This commit is contained in:
Daniel López Guimaraes 2024-07-06 13:48:49 +01:00 committed by Maschell
parent 26d7d87699
commit 1a9acbd3b7

View File

@ -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;
} }