From a1fc78f3befe67f2136125b59ab0a82932a76e2a Mon Sep 17 00:00:00 2001 From: kub Date: Tue, 1 Oct 2024 21:37:37 +0200 Subject: [PATCH] mcd, fix save state regression (hint vector) --- pico/cd/megasd.c | 2 +- pico/state.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pico/cd/megasd.c b/pico/cd/megasd.c index 8bc04593e..df84c2800 100644 --- a/pico/cd/megasd.c +++ b/pico/cd/megasd.c @@ -169,7 +169,7 @@ void msd_update() } } - // Hack for D32XR: to prevent BIOS freaking out, pretend drive is "ready" + // Hack for D32XR: to prevent CD BIOS freaking out, pretend drive "ready" // TODO find out what a real MEGASD is doing with this schizophrenia! u8 state = Pico_mcd->s68k_regs[0x38]; Pico_mcd->s68k_regs[0x41] = ~(~Pico_mcd->s68k_regs[0x41] + CD_READY-state) & 0xf; diff --git a/pico/state.c b/pico/state.c index 3b4c3fa60..e02bed25e 100644 --- a/pico/state.c +++ b/pico/state.c @@ -289,7 +289,7 @@ static int state_save(void *file) SekPackCpu(buff, 1); if (Pico_mcd->s68k_regs[3] & 4) // 1M mode? wram_1M_to_2M(Pico_mcd->word_ram2M); - memcpy(&Pico_mcd->m.hint_vector, Pico.rom + 0x72, + memcpy(&Pico_mcd->m.hint_vector, Pico_mcd->bios + 0x72, sizeof(Pico_mcd->m.hint_vector)); CHECKED_WRITE_BUFF(CHUNK_S68K, buff);