From c711ed6253fa17dcfc69c0ae9f0937921b2b9a41 Mon Sep 17 00:00:00 2001 From: Aurora Date: Sat, 27 Aug 2016 00:34:25 +0200 Subject: [PATCH] Added a different error for < 3.x NANDs as they can not be booted currently --- source/firm.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/firm.c b/source/firm.c index 301839fba..14fa54c5f 100755 --- a/source/firm.c +++ b/source/firm.c @@ -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");