From 33d40b491e7062831abac725f8fdc4d57d831c89 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Wed, 23 May 2018 16:31:24 +0200 Subject: [PATCH] Fix firm.c sysmodule merging loop --- arm9/source/firm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm9/source/firm.c b/arm9/source/firm.c index 3c8653b..73851f0 100755 --- a/arm9/source/firm.c +++ b/arm9/source/firm.c @@ -282,7 +282,7 @@ static inline void mergeSection0(FirmwareType firmType, u32 firmVersion, bool lo if(firmType == NATIVE_FIRM && (ISN3DS || firmVersion >= 0x1D)) { //2) Merge that info with our own modules' - for(u8 *src = (u8 *)0x18180000; src < (u8 *)(0x18180000 + /*LUMA_SECTION0_SIZE*/0); src += srcModuleSize) + for(u8 *src = (u8 *)0x18180000; memcmp(((Cxi *)src)->ncch.magic, "NCCH", 4) == 0; src += srcModuleSize) { const char *name = ((Cxi *)src)->exHeader.systemControlInfo.appTitle;