From 905837468ca5c940cf0edaabf8705bfe48d551a0 Mon Sep 17 00:00:00 2001 From: TuxSH <1922548+TuxSH@users.noreply.github.com> Date: Mon, 18 May 2020 21:05:36 +0100 Subject: [PATCH] fix module loading --- arm9/source/patches.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm9/source/patches.c b/arm9/source/patches.c index d00e3c9..3b308f2 100644 --- a/arm9/source/patches.c +++ b/arm9/source/patches.c @@ -442,7 +442,7 @@ u32 patchK11ModuleLoading(u32 section0size, u32 modulesSize, u8 *pos, u32 size) off32 += 2; off32[1] = off32[0] + modulesSize; for(; *off32 != section0size; off32++); - *off32 += ((modulesSize + 0x1FF) >> 9) << 9; + *off32 = ((modulesSize + 0x1FF) >> 9) << 9; off = memsearch(pos, modulePidPattern, size, 4);