Merge pull request #532 from Aikku93/patch-3

Check `gameCode==####` for homebrew
This commit is contained in:
zeromus 2022-06-17 14:28:27 -04:00 committed by GitHub
commit a3499803ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -635,7 +635,8 @@ bool GameInfo::isDSiEnhanced()
bool GameInfo::isHomebrew()
{
return ((header.ARM9src < 0x4000) && (T1ReadLong(header.logo, 0) != 0x51AEFF24) && (T1ReadLong(header.logo, 4) != 0x699AA221));
return ((header.ARM9src < 0x4000) && (T1ReadLong(header.logo, 0) != 0x51AEFF24) && (T1ReadLong(header.logo, 4) != 0x699AA221)) ||
(!memcmp(header.gameCode, "####", 4)); // <- ndstool default signature
}
static int rom_init_path(const char *filename, const char *physicalName, const char *logicalFilename)