From: kub Date: Tue, 1 Oct 2024 19:37:37 +0000 (+0200) Subject: mcd, fix save state regression (hint vector) X-Git-Tag: v2.04~115 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1fc78f3befe67f2136125b59ab0a82932a76e2a;p=picodrive.git mcd, fix save state regression (hint vector) --- diff --git a/pico/cd/megasd.c b/pico/cd/megasd.c index 8bc04593..df84c280 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 3b4c3fa6..e02bed25 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);