From 8c43f983bc8adf07077aec3e223ac0dd815f501c Mon Sep 17 00:00:00 2001 From: Deletecat Date: Tue, 3 Mar 2026 22:35:07 +0000 Subject: [PATCH] dsrom: fix Battle of Giants Mutant Insects This game gets detected as homebrew as it has code that is run before the actual SDK boot code. This patch ports over the fix from TWiLight Menu++ commit 75d5c3cf18fb0fa025ed4c5fd1556684d87be61b Co-Authored-By: RocketRobz --- arm9/source/dsrom.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arm9/source/dsrom.cpp b/arm9/source/dsrom.cpp index b9c3b234..c7a3ae96 100644 --- a/arm9/source/dsrom.cpp +++ b/arm9/source/dsrom.cpp @@ -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