From d6c6c421e9e750e3d2d6d5c9830c7f42d8c1f62b Mon Sep 17 00:00:00 2001 From: TuxSH Date: Tue, 23 May 2017 22:41:12 +0200 Subject: [PATCH] Allow empty sections at any place in FIRMs --- loader/source/firm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/source/firm.c b/loader/source/firm.c index 7f8ee91..c1b9156 100644 --- a/loader/source/firm.c +++ b/loader/source/firm.c @@ -29,7 +29,7 @@ void disableMpuAndJumpToEntrypoints(int argc, char **argv, void *arm11Entry, voi void launchFirm(Firm *firm, int argc, char **argv) { //Copy FIRM sections to respective memory locations - for(u32 sectionNum = 0; sectionNum < 4 && firm->section[sectionNum].size != 0; sectionNum++) + for(u32 sectionNum = 0; sectionNum < 4; sectionNum++) memcpy(firm->section[sectionNum].address, (u8 *)firm + firm->section[sectionNum].offset, firm->section[sectionNum].size); disableMpuAndJumpToEntrypoints(argc, argv, firm->arm9Entry, firm->arm11Entry);