Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion arm9/source/dsrom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ bool DSRomInfo::loadDSRomInfo(const std::string& filename, bool loadBanner) {
_isModernHomebrew = ETrue;
u32 arm9StartSig[4] = {0};
//Seek to ARM9 entry point and read first 4 instructions
fseek(f, (u32)header.arm9romOffset + (u32)header.arm9executeAddress - (u32)header.arm9destination, SEEK_SET);
// "Battle/Combat of Giants: Mutant Insects" (TID: BIG) has code that is run before the actual SDK boot code
fseek(f, (u32)header.arm9romOffset + ((strncmp(header.gameCode, "BIG", 3) == 0) ? 0x02000800 : (u32)header.arm9executeAddress) - (u32)header.arm9destination, SEEK_SET);
fread(arm9StartSig, sizeof(u32), 4, f);

//Check for Nintendo SDK style retail builds
Expand Down