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)
|
||||||
|
@ -4192,4 +4199,4 @@ void NDS::ARM7IOWrite32(u32 addr, u32 val)
|
||||||
Log(LogLevel::Debug, "unknown ARM7 IO write32 %08X %08X %08X\n", addr, val, ARM7.R[15]);
|
Log(LogLevel::Debug, "unknown ARM7 IO write32 %08X %08X %08X\n", addr, val, ARM7.R[15]);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue