Fix GBA<->DS comm not working when using FreeBIOS

Thanks CasualPokePlayer for pointing this out
This commit is contained in:
Nadia Holmquist Pedersen 2023-12-08 18:29:30 +01:00
parent 5ef35a4ccf
commit 6949100446
1 changed files with 8 additions and 1 deletions

View File

@ -284,6 +284,13 @@ void NDS::SetupDirectBoot()
const u8* cartrom = NDSCartSlot.GetCart()->GetROM(); const u8* cartrom = NDSCartSlot.GetCart()->GetROM();
MapSharedWRAM(3); MapSharedWRAM(3);
// Copy the Nintendo logo from the NDS ROM header to the ARM9 BIOS if using FreeBIOS
// Games need this for DS<->GBA comm to work
if (IsLoadedARM9BIOSBuiltIn())
{
memcpy(ARM9BIOS.data() + 0x20, header.NintendoLogo, 0x9C);
}
// setup main RAM data // setup main RAM data
for (u32 i = 0; i < 0x170; i+=4) for (u32 i = 0; i < 0x170; i+=4)