Fix external FIRM loading

This commit is contained in:
Aurora 2016-04-29 15:19:57 +02:00
parent c6d3158b56
commit 85615d1916

View File

@ -190,8 +190,9 @@ static inline void loadFirm(u32 firmType, u32 externalFirm)
{ {
section = firm->section; section = firm->section;
u32 externalFirmLoaded = externalFirm && !fileRead(firm, "/luma/firmware.bin", 0) && u32 externalFirmLoaded = externalFirm &&
(((u32)section[2].address >> 8) & 0xFF) != (console ? 0x60 : 0x68); !fileRead(firm, "/luma/firmware.bin", 0) &&
(((u32)section[2].address >> 8) & 0xFF) == (console ? 0x60 : 0x68);
/* If the conditions to load the external FIRM aren't met, or reading fails, or the FIRM /* If the conditions to load the external FIRM aren't met, or reading fails, or the FIRM
doesn't match the console, load FIRM from CTRNAND */ doesn't match the console, load FIRM from CTRNAND */