}\r
else {\r
CHECKED_WRITE_BUFF(CHUNK_SMS, Pico.ms);\r
+ CHECKED_WRITE_BUFF(CHUNK_YM2413, old_opll);\r
}\r
\r
CHECKED_WRITE_BUFF(CHUNK_VRAM, PicoMem.vram);\r
memcpy(buff, pcd_event_times, sizeof(pcd_event_times));\r
CHECKED_WRITE(CHUNK_CD_EVT, 0x40, buff);\r
\r
- CHECKED_WRITE(CHUNK_YM2413, sizeof(OPLL), &old_opll);\r
-\r
len = gfx_context_save(buf2);\r
CHECKED_WRITE(CHUNK_CD_GFX, len, buf2);\r
len = cdc_context_save(buf2);\r
\r
case CHUNK_IOPORTS: CHECKED_READ_BUFF(PicoMem.ioports); break;\r
case CHUNK_PSG: CHECKED_READ2(28*4, sn76496_regs); break;\r
- case CHUNK_YM2413: CHECKED_READ2(sizeof(OPLL), &old_opll); break;\r
+ case CHUNK_YM2413: CHECKED_READ_BUFF(old_opll); break;\r
case CHUNK_FM:\r
ym2612_regs = YM2612GetRegs();\r
CHECKED_READ2(0x200+4, ym2612_regs);\r