mcd, fix save state regression (hint vector)
authorkub <derkub@gmail.com>
Tue, 1 Oct 2024 19:37:37 +0000 (21:37 +0200)
committerkub <derkub@gmail.com>
Tue, 1 Oct 2024 19:37:37 +0000 (21:37 +0200)
pico/cd/megasd.c
pico/state.c

index 8bc0459..df84c28 100644 (file)
@@ -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;
index 3b4c3fa..e02bed2 100644 (file)
@@ -289,7 +289,7 @@ static int state_save(void *file)
     SekPackCpu(buff, 1);\r
     if (Pico_mcd->s68k_regs[3] & 4) // 1M mode?\r
       wram_1M_to_2M(Pico_mcd->word_ram2M);\r
-    memcpy(&Pico_mcd->m.hint_vector, Pico.rom + 0x72,\r
+    memcpy(&Pico_mcd->m.hint_vector, Pico_mcd->bios + 0x72,\r
       sizeof(Pico_mcd->m.hint_vector));\r
 \r
     CHECKED_WRITE_BUFF(CHUNK_S68K,     buff);\r