Minor stuff

This commit is contained in:
Aurora 2016-10-10 02:51:44 +02:00
parent 85141d5eda
commit 06ea123dbd

View File

@ -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);