This commit is contained in:
Aurora 2016-11-11 02:16:33 +01:00
parent a2cfa2be16
commit 4011970a57

View File

@ -599,11 +599,11 @@ void patchCode(u64 progId, u16 progVer, u8 *code, u32 size)
res += loadTitleCodeSection(progId, code, size); res += loadTitleCodeSection(progId, code, size);
//Language emulation //Language emulation
u8 regionId, u8 regionId = 0xFF,
languageId; languageId;
res += loadTitleLocaleConfig(progId, &regionId, &languageId); res += loadTitleLocaleConfig(progId, &regionId, &languageId);
if(!res) if(!res && regionId != 0xFF)
{ {
u32 CFGUHandleOffset; u32 CFGUHandleOffset;
u8 *CFGU_GetConfigInfoBlk2_endPos = getCfgOffsets(code, size, &CFGUHandleOffset); u8 *CFGU_GetConfigInfoBlk2_endPos = getCfgOffsets(code, size, &CFGUHandleOffset);