Fix GW Launcher.dat bootup

This is a workaround,, not a good solution
This commit is contained in:
d0k3 2016-04-14 11:28:08 +02:00
parent 897d254a4f
commit a52647aca0

View File

@ -125,6 +125,7 @@ bool InitNandCrypto(void)
// part #2: TWL KEY
// see: https://www.3dbrew.org/wiki/Memory_layout#ARM9_ITCM
if ((*(vu32*) 0x101401C0) == 0) { // only for a9lh
u32* TwlCustId = (u32*) (0x01FFB808);
u8 TwlKeyX[16];
u8 TwlKeyY[16];
@ -145,8 +146,10 @@ bool InitNandCrypto(void)
setup_aeskeyX(0x03, TwlKeyX);
setup_aeskeyY(0x03, TwlKeyY);
use_aeskey(0x03);
}
// part #3: CTRNAND N3DS KEY
// this could make sense for alternative entrypoints, so it's not a9lh exclusive
if (!LoadKeyFromFile("0:", slot0x05KeyY, 0x05, 'Y', NULL))
LoadKeyFromFile("0:/Decrypt9", slot0x05KeyY, 0x05, 'Y', NULL);