Added a different error for < 3.x NANDs as they can not be booted currently

This commit is contained in:
Aurora 2016-08-27 00:34:25 +02:00
parent 356268eae5
commit c711ed6253

View File

@ -43,7 +43,9 @@ static const firmSectionHeader *section;
u32 config,
emuOffset;
bool isN3DS, isDevUnit, isFirmlaunch;
bool isN3DS,
isDevUnit,
isFirmlaunch;
FirmwareSource firmSource;
@ -253,6 +255,11 @@ static inline u32 loadFirm(FirmwareType firmType)
if(!isN3DS && firmType == NATIVE_FIRM && firmVersion < 0x25)
{
//We can't boot < 3.x NANDs
if(firmVersion < 0x18)
error("An old unsupported NAND has been detected.\nLuma3DS is unable to boot it.");
//We can't boot a 4.x NATIVE_FIRM, load one from SD
if(!fileRead(firm, "/luma/firmware.bin") || (((u32)section[2].address >> 8) & 0xFF) != 0x68)
error("An old unsupported FIRM has been detected.\nCopy firmware.bin in /luma to boot");