Skip to content

Commit

Permalink
Added a different error for < 3.x NANDs as they can not be booted cur…
Browse files Browse the repository at this point in the history
…rently
  • Loading branch information
AuroraWright committed Aug 26, 2016
1 parent 356268e commit c711ed6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion source/firm.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ static const firmSectionHeader *section;
u32 config,
emuOffset;

bool isN3DS, isDevUnit, isFirmlaunch;
bool isN3DS,
isDevUnit,
isFirmlaunch;

FirmwareSource firmSource;

Expand Down Expand Up @@ -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");

Expand Down

0 comments on commit c711ed6

Please sign in to comment.