diff --git a/source/firm.c b/source/firm.c index d626102..66f3da4 100755 --- a/source/firm.c +++ b/source/firm.c @@ -191,7 +191,6 @@ u32 patchNativeFirm(u32 firmVersion, FirmwareSource nandType, u32 emuHeader, u32 u32 patchTwlFirm(u32 firmVersion, u32 devMode) { u8 *arm9Section = (u8 *)firm + firm->section[3].offset; - u32 ret = 0; //On N3DS, decrypt ARM9Bin and patch ARM9 entrypoint to skip kernel9loader if(ISN3DS) @@ -200,6 +199,8 @@ u32 patchTwlFirm(u32 firmVersion, u32 devMode) firm->arm9Entry = (u8 *)0x801301C; } + u32 ret = 0; + ret += patchLgySignatureChecks(arm9Section, firm->section[3].size); ret += patchTwlInvalidSignatureChecks(arm9Section, firm->section[3].size); ret += patchTwlNintendoLogoChecks(arm9Section, firm->section[3].size); @@ -217,7 +218,6 @@ u32 patchTwlFirm(u32 firmVersion, u32 devMode) u32 patchAgbFirm(u32 devMode) { u8 *arm9Section = (u8 *)firm + firm->section[3].offset; - u32 ret = 0; //On N3DS, decrypt ARM9Bin and patch ARM9 entrypoint to skip kernel9loader if(ISN3DS) @@ -226,6 +226,8 @@ u32 patchAgbFirm(u32 devMode) firm->arm9Entry = (u8 *)0x801301C; } + u32 ret = 0; + ret += patchLgySignatureChecks(arm9Section, firm->section[3].size); if(CONFIG(SHOWGBABOOT)) ret += patchAgbBootSplash(arm9Section, firm->section[3].size);