From a0325e91f9b7350b082d476592093614327ff57e Mon Sep 17 00:00:00 2001 From: Aurora Date: Thu, 22 Sep 2016 22:19:27 +0200 Subject: [PATCH] This can't happen --- source/emunand.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/emunand.c b/source/emunand.c index f94b3b1..9b7e59f 100644 --- a/source/emunand.c +++ b/source/emunand.c @@ -32,9 +32,10 @@ void locateEmuNand(u32 *emuHeader, FirmwareSource *nandType) fatStart; bool found = false; - if(!nandSize && !sdmmc_sdcard_readsectors(0, 1, temp)) + if(!nandSize) { nandSize = getMMCDevice(0)->total_size; + sdmmc_sdcard_readsectors(0, 1, temp); fatStart = *(u32 *)(temp + 0x1C6); //First sector of the FAT partition }