Fix GBA<->DS comm not working when using FreeBIOS
Thanks CasualPokePlayer for pointing this out
This commit is contained in:
parent
5ef35a4ccf
commit
6949100446
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue