mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 21:52:48 +00:00
Fix: Decrypting TWL MBR in GW type EmuNANDs
This commit is contained in:
parent
c2a4d5c0d1
commit
bb05242494
@ -284,6 +284,7 @@ int ReadNandSectors(u8* buffer, u32 sector, u32 count, u32 keyslot, u32 nand_src
|
||||
int errorcode = 0;
|
||||
if ((sector == 0) && (emunand_base_sector % 0x200000 == 0)) { // GW EmuNAND header handling
|
||||
errorcode = sdmmc_sdcard_readsectors(emunand_base_sector + getMMCDevice(0)->total_size, 1, buffer);
|
||||
if ((keyslot < 0x40) && (keyslot != 0x11) && !errorcode) CryptNand(buffer, 0, 1, keyslot);
|
||||
sector = 1;
|
||||
count--;
|
||||
buffer += 0x200;
|
||||
|
Loading…
x
Reference in New Issue
Block a user