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);