Previous 199869 Revisions Next

r23498 Thursday 6th June, 2013 at 15:29:44 UTC by Fabio Priuli
(MESS) snes: added partial save state support to S-DD1 games. nw.

it should work fine already as long as you don't save/restore during gfx decompression.
I will try to finalize support eventually, but first I'd like to remove some slow
down in emulation during gfx decompression.
[src/mess/machine]sns_sdd1.c

trunk/src/mess/machine/sns_sdd1.c
r23497r23498
435435   save_item(NAME(m_sdd1_enable));
436436   save_item(NAME(m_xfer_enable));
437437   save_item(NAME(m_mmc));
438   // TODO: save decomp-related and dma-related items and fix their restore...
438   
439   for (int i = 0; i < 8; i++)
440   {
441      save_item(NAME(m_dma[i].addr), i);
442      save_item(NAME(m_dma[i].size), i);
443   }
444
445   save_pointer(NAME(m_buffer.data), 0x10000);
446   save_item(NAME(m_buffer.offset));
447   save_item(NAME(m_buffer.size));
448   save_item(NAME(m_buffer.ready));
449
450   // TODO: save remaining decomp-related items so to fix support if we try to save mid-decompression...
439451}
440452
441453void sns_rom_sdd1_device::device_reset()

Previous 199869 Revisions Next


© 1997-2024 The MAME Team