+ }
+ breakswitch:;
+ }
+
+ if (PicoAHW & PAHW_MCD)
+ {
+ /* after load events */
+ if (Pico_mcd->s68k_regs[3]&4) // 1M mode?
+ wram_2M_to_1M(Pico_mcd->word_ram2M);
+ PicoMemResetCD(Pico_mcd->s68k_regs[3]);
+#ifdef _ASM_CD_MEMORY_C
+ if (Pico_mcd->s68k_regs[3]&4)
+ PicoMemResetCDdecode(Pico_mcd->s68k_regs[3]);
+#endif
+ if (!(Pico_mcd->s68k_regs[0x36] & 1) && (Pico_mcd->scd.Status_CDC & 1))
+ cdda_start_play();
+ // restore hint vector
+ *(unsigned short *)(Pico_mcd->bios + 0x72) = Pico_mcd->m.hint_vector;
+ }
+
+ return 0;
+}
+
+
+int PicoCdLoadStateGfx(void *file)
+{
+ int ver, len, found = 0;
+ char buff[8];
+
+ g_read_offs = 0;
+ CHECKED_READ(8, buff);
+ if (strncmp((char *)buff, "PicoSMCD", 8) && strncmp((char *)buff, "PicoSEXT", 8))
+ R_ERROR_RETURN("bad header");
+ CHECKED_READ(4, &ver);