Skip to content

Commit

Permalink
Fix GBA<->DS comm not working when using FreeBIOS
Browse files Browse the repository at this point in the history
Thanks CasualPokePlayer for pointing this out
  • Loading branch information
nadiaholmquist committed Dec 8, 2023
1 parent 5ef35a4 commit f1f431c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/NDS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,13 @@ void NDS::SetupDirectBoot()
const u8* cartrom = NDSCartSlot.GetCart()->GetROM();
MapSharedWRAM(3);

// Copy the Nintendo logo from the NDS ROM header to the ARM7 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

for (u32 i = 0; i < 0x170; i+=4)
Expand Down

0 comments on commit f1f431c

Please sign in to comment.