From 85615d1916102743fff991ba01a51a61fdc2b542 Mon Sep 17 00:00:00 2001 From: Aurora Date: Fri, 29 Apr 2016 15:19:57 +0200 Subject: [PATCH] Fix external FIRM loading --- source/firm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/firm.c b/source/firm.c index 45a669b..10efe25 100755 --- a/source/firm.c +++ b/source/firm.c @@ -190,8 +190,9 @@ static inline void loadFirm(u32 firmType, u32 externalFirm) { section = firm->section; - u32 externalFirmLoaded = externalFirm && !fileRead(firm, "/luma/firmware.bin", 0) && - (((u32)section[2].address >> 8) & 0xFF) != (console ? 0x60 : 0x68); + u32 externalFirmLoaded = externalFirm && + !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 doesn't match the console, load FIRM from CTRNAND */