Fix decrypted ARM9bin support for LGY FIRMs

This commit is contained in:
Aurora 2016-09-23 14:34:20 +02:00
parent 11d29368ce
commit 083806bfc9
2 changed files with 4 additions and 3 deletions

View File

@ -417,7 +417,8 @@ void kernel9Loader(u8 *arm9Section)
break;
}
bool needToDecrypt = *(u32 *)(arm9Section + 0x800) != 0x47704770;
u32 startOfArm9Bin = *(u32 *)(arm9Section + 0x800);
bool needToDecrypt = startOfArm9Bin != 0x47704770 && startOfArm9Bin != 0xB0862000;
if(!isDevUnit && (k9lVersion == 2 || (k9lVersion == 1 && needToDecrypt)))
{
@ -431,7 +432,7 @@ void kernel9Loader(u8 *arm9Section)
{
u8 arm9BinSlot;
if(k9lVersion == 0) arm9BinSlot = 0x15;
if(!k9lVersion) arm9BinSlot = 0x15;
else
{
arm9BinSlot = 0x16;

View File

@ -317,6 +317,6 @@ void initScreens(void)
needToSetup = false;
}
swapFramebuffers(false);
clearScreens(true, true, false);
swapFramebuffers(false);
}