From 631fad24c019b2b576384fbe2df0e74a20e66226 Mon Sep 17 00:00:00 2001 From: Aurora Date: Thu, 1 Sep 2016 17:56:33 +0200 Subject: [PATCH] Make firmware.bin check more readable --- source/firm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/firm.c b/source/firm.c index d2600f0..d34d5a9 100755 --- a/source/firm.c +++ b/source/firm.c @@ -254,7 +254,7 @@ static inline u32 loadFirm(FirmwareType *firmType, FirmwareSource firmSource) //We can't boot a 3.x/4.x NATIVE_FIRM, load one from SD else if(firmVersion < 0x25) { - if(!fileRead(firm, "/luma/firmware.bin") || (((u32)section[2].address >> 8) & 0xFF) != 0x68) + if(!fileRead(firm, "/luma/firmware.bin") || section[2].address != (u8 *)0x8006800) error("An old unsupported FIRM has been detected.\nCopy firmware.bin in /luma to boot"); //No assumption regarding FIRM version