From aff444de30efe0d537e5a7a45d45f8c2a5686f22 Mon Sep 17 00:00:00 2001 From: Couriersud Date: Sat, 21 Feb 2009 20:12:46 +0000 Subject: [PATCH] Added save state support to quantum --- src/mame/drivers/quantum.c | 6 +++--- src/mame/video/avgdvg.c | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/mame/drivers/quantum.c b/src/mame/drivers/quantum.c index a28f9015854..382a65deaaf 100644 --- a/src/mame/drivers/quantum.c +++ b/src/mame/drivers/quantum.c @@ -324,6 +324,6 @@ ROM_END * *************************************/ -GAME( 1982, quantum, 0, quantum, quantum, 0, ROT270, "Atari", "Quantum (rev 2)", 0 ) -GAME( 1982, quantum1, quantum, quantum, quantum, 0, ROT270, "Atari", "Quantum (rev 1)", 0 ) -GAME( 1982, quantump, quantum, quantum, quantum, 0, ROT270, "Atari", "Quantum (prototype)", 0 ) +GAME( 1982, quantum, 0, quantum, quantum, 0, ROT270, "Atari", "Quantum (rev 2)", GAME_SUPPORTS_SAVE ) +GAME( 1982, quantum1, quantum, quantum, quantum, 0, ROT270, "Atari", "Quantum (rev 1)", GAME_SUPPORTS_SAVE ) +GAME( 1982, quantump, quantum, quantum, quantum, 0, ROT270, "Atari", "Quantum (prototype)", GAME_SUPPORTS_SAVE ) diff --git a/src/mame/video/avgdvg.c b/src/mame/video/avgdvg.c index f39343de917..2ccddcc2890 100644 --- a/src/mame/video/avgdvg.c +++ b/src/mame/video/avgdvg.c @@ -1472,7 +1472,6 @@ static void register_state (running_machine *machine) state_save_register_item(machine, "AVG", NULL, 0, flip_x); state_save_register_item(machine, "AVG", NULL, 0, flip_y); - state_save_register_item_pointer(machine, "AVG", NULL, 0, vectorram, vectorram_size); } @@ -1542,6 +1541,8 @@ VIDEO_START( avg_tempest ) { vgc = &avg_tempest; VIDEO_START_CALL(avg_common); + + state_save_register_item_pointer(machine, "AVG", NULL, 0, vectorram, vectorram_size); } VIDEO_START( avg_mhavoc ) @@ -1554,6 +1555,8 @@ VIDEO_START( avg_bzone ) { vgc = &avg_bzone; VIDEO_START_CALL(avg_common); + + state_save_register_item_pointer(machine, "AVG", NULL, 0, vectorram, vectorram_size); } VIDEO_START( avg_quantum )