mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
mcd, fix crash (plat_mmap not zeroing memory)
This commit is contained in:
parent
2eeee072ea
commit
d128474f6f
1 changed files with 1 additions and 0 deletions
|
@ -1225,6 +1225,7 @@ PICO_INTERNAL void PicoMemSetupCD(void)
|
||||||
{
|
{
|
||||||
if (!Pico_mcd)
|
if (!Pico_mcd)
|
||||||
Pico_mcd = plat_mmap(0x05000000, sizeof(mcd_state), 0, 0);
|
Pico_mcd = plat_mmap(0x05000000, sizeof(mcd_state), 0, 0);
|
||||||
|
memset(Pico_mcd, 0, sizeof(mcd_state));
|
||||||
pcd_base_address = (Pico.romsize > 0x20000 ? 0x400000 : 0x000000);
|
pcd_base_address = (Pico.romsize > 0x20000 ? 0x400000 : 0x000000);
|
||||||
|
|
||||||
// setup default main68k map
|
// setup default main68k map
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue