From a331fcd8737abf5178bbd790f8f0229ae4473442 Mon Sep 17 00:00:00 2001 From: Pablo Curiel Date: Wed, 7 Sep 2016 11:33:05 -0400 Subject: [PATCH] Add minimum NAND size exception for 2DS. --- source/emunand.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/emunand.c b/source/emunand.c index c2db014..5fe88f9 100644 --- a/source/emunand.c +++ b/source/emunand.c @@ -54,6 +54,9 @@ void locateEmuNand(u32 *off, u32 *head, FirmwareSource *emuNand) // Check for 'Legacy', 'Default' and 'Minimum' partition layouts when checking for the 2nd EmuNAND nandOffset = (*emuNand == FIRMWARE_EMUNAND ? 0 : ((isN3DS || nandSize > O3DS_TOSHIBA_NAND) ? nandLayoutN3DS[i] : nandLayoutO3DS[i])); + // Exception for 2DS + if (i == 2 && !isN3DS && nandOffset == N3DS_MINIMUM_FAT) nandOffset = O3DS_MINIMUM_FAT; + //Check for RedNAND if(!sdmmc_sdcard_readsectors(nandOffset + 1, 1, temp) && *(u32 *)(temp + 0x100) == NCSD_MAGIC) {