diff --git a/injector/source/patcher.c b/injector/source/patcher.c index 4045b6f..39a64f8 100644 --- a/injector/source/patcher.c +++ b/injector/source/patcher.c @@ -599,11 +599,11 @@ void patchCode(u64 progId, u16 progVer, u8 *code, u32 size) res += loadTitleCodeSection(progId, code, size); //Language emulation - u8 regionId, + u8 regionId = 0xFF, languageId; res += loadTitleLocaleConfig(progId, ®ionId, &languageId); - if(!res) + if(!res && regionId != 0xFF) { u32 CFGUHandleOffset; u8 *CFGU_GetConfigInfoBlk2_endPos = getCfgOffsets(code, size, &CFGUHandleOffset);