Skip to content

Commit

Permalink
ios_mcp: Add DLP permission group to all titles
Browse files Browse the repository at this point in the history
This allows usage of nn_dlp from homebrew.
  • Loading branch information
DaniElectra authored and Maschell committed Jul 6, 2024
1 parent 26d7d87 commit 1a9acbd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/ios_mcp/source/mcp_loadfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,16 @@ int _MCP_ReadCOSXml_patch(uint32_t u1, uint32_t u2, MCPPPrepareTitleInfo *xmlDat
xmlData->avail_size = 0;
xmlData->overlay_arena = 0;

bool dlpPatched = false;

// Give us full permissions everywhere
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;
}

Expand Down

0 comments on commit 1a9acbd

Please sign in to comment.