This can't happen

This commit is contained in:
Aurora 2016-09-22 22:19:27 +02:00
parent e11edd5dee
commit a0325e91f9

View File

@ -32,9 +32,10 @@ void locateEmuNand(u32 *emuHeader, FirmwareSource *nandType)
fatStart; fatStart;
bool found = false; bool found = false;
if(!nandSize && !sdmmc_sdcard_readsectors(0, 1, temp)) if(!nandSize)
{ {
nandSize = getMMCDevice(0)->total_size; nandSize = getMMCDevice(0)->total_size;
sdmmc_sdcard_readsectors(0, 1, temp);
fatStart = *(u32 *)(temp + 0x1C6); //First sector of the FAT partition fatStart = *(u32 *)(temp + 0x1C6); //First sector of the FAT partition
} }