From 4011970a575e487aed7ff04f14ff4a2d9d73d5e5 Mon Sep 17 00:00:00 2001 From: Aurora Date: Fri, 11 Nov 2016 02:16:33 +0100 Subject: [PATCH] Fix derp --- injector/source/patcher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);