Skip to content

Commit fbfd8f0

Browse files
loadrpx: give codegen access to loaded titles
1 parent b9dfe51 commit fbfd8f0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

sd_kernels/loadrpx/mcp/source/loadfile.thumb.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,15 @@ int MCP_LoadFile_patch(ipcmessage *msg)
5555
int MCP_ReadCOSXml_patch(uint32_t u1, uint32_t u2, MCPPPrepareTitleInfo *xmlData)
5656
{
5757
int res = real_MCP_ReadCOSXml_patch(u1, u2, xmlData);
58-
58+
59+
// give title full permission for everything
5960
for (uint32_t i = 0; i < 19; i++) {
6061
xmlData->permissions[i].mask = 0xFFFFFFFFFFFFFFFF;
6162
}
6263

64+
// allow codegen access
65+
xmlData->codegen_size = 0x02000000;
66+
xmlData->codegen_core = 0x80000001;
67+
6368
return res;
6469
}
65-

0 commit comments

Comments
 (0)