Skip to content

Commit

Permalink
mcd, fix crash if no bios with msu
Browse files Browse the repository at this point in the history
  • Loading branch information
irixxxx committed Sep 27, 2024
1 parent 549dd40 commit 0418444
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pico/cd/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -1220,6 +1220,12 @@ static void m68k_mem_setup_cd(void);

PICO_INTERNAL void PicoMemSetupCD(void)
{
if (Pico_mcd == NULL) {
static u8 bios_id[4] = "SEGA";
PicoCreateMCD(NULL, 0);
memcpy(Pico_mcd->bios+0x100, bios_id, 4);
}

pcd_base_address = (Pico.romsize ? 0x400000 : 0x000000);

// setup default main68k map
Expand Down

0 comments on commit 0418444

Please sign in to comment.