Skip to content

Commit

Permalink
Fix external module loading for firm modules such as TwlBg
Browse files Browse the repository at this point in the history
Closes #1919 and #1921
  • Loading branch information
TuxSH committed Jul 21, 2023
1 parent 11be450 commit f40a1cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arm9/source/firm.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,8 @@ static void mergeSection0(FirmwareType firmType, u32 firmVersion, bool loadFromS
memcmp(moduleList[i].name, ((Cxi *)dst)->exHeader.systemControlInfo.appTitle, sizeof(((Cxi *)dst)->exHeader.systemControlInfo.appTitle)) != 0)
error("An external FIRM module is invalid or corrupted.");

dst += dstModuleSize;
maxModuleSize -= dstModuleSize;
continue;
}
}
Expand Down

0 comments on commit f40a1cc

Please sign in to comment.