From ab360aabe86f5d0c74cd9f58531409b7460753cd Mon Sep 17 00:00:00 2001 From: Maschell Date: Thu, 7 Jul 2022 15:13:46 +0200 Subject: [PATCH] Don't give ONE PIECE Unlimited World Red access to sd card, this avoid a softlock when booting. --- source/ios_mcp/source/mcp_loadfile.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/source/ios_mcp/source/mcp_loadfile.c b/source/ios_mcp/source/mcp_loadfile.c index 798b55a..2727f19 100644 --- a/source/ios_mcp/source/mcp_loadfile.c +++ b/source/ios_mcp/source/mcp_loadfile.c @@ -174,8 +174,16 @@ int _MCP_ReadCOSXml_patch(uint32_t u1, uint32_t u2, MCPPPrepareTitleInfo *xmlDat int res = real_MCP_ReadCOSXml_patch(u1, u2, xmlData); - // Give us sd access! - xmlData->permissions[4].mask = 0xFFFFFFFFFFFFFFFF; + /* + For some reason ONE PIECE Unlimited World Red softlocks when it has full FSA permissions. + */ + if (xmlData->titleId != 0x0005000010175C00 && // ONE PIECE Unlimited World Red USA + xmlData->titleId != 0x0005000010175D00 && // ONE PIECE Unlimited World Red EUR + xmlData->titleId != 0x0005000010148000) { // ONE PIECE Unlimited World Red JPN + + // Give us sd access! + xmlData->permissions[4].mask = 0xFFFFFFFFFFFFFFFF; + } /* For some reason Mass Effects 3 softlocks when it has full ACP permissions. */