make GBA roms work under freebios

This commit is contained in:
CasualPokePlayer 2023-12-06 23:19:15 -08:00
parent 10ac5ddb3c
commit 7b4bd8cdc3
2 changed files with 7 additions and 0 deletions

Binary file not shown.

View File

@ -543,6 +543,13 @@ const char* InitCarts(bool gba)
return "Failed to load NDS ROM!";
}
if (ndsRom->second >= 0x15C && NDS::IsLoadedARM9BIOSBuiltIn())
{
// copy logo to the ARM9 bios
// this is only needed for the builtin bios, which omits the logo
memcpy(&NDS::ARM9BIOS[0x20], &ndsRom->first[0xC0], 0x9C);
}
if (gba)
{
auto gbaRom = GetFileData("gba.rom");