diff options
author | 2018-01-09 19:41:29 +0100 | |
---|---|---|
committer | 2018-01-09 19:41:29 +0100 | |
commit | 842fbca111609a2fd518206e358f5b7fb8f6a6a7 (patch) | |
tree | c93c9d5456c85658e759a27d2c60bb8a1b6b8e6a | |
parent | 9196614a03ff70caa55c894b2e4bd2db4a818eed (diff) |
route16.cpp: restore save state support for protected sets (nw)
-rw-r--r-- | src/mame/drivers/route16.cpp | 10 | ||||
-rw-r--r-- | src/mame/includes/route16.h | 1 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/mame/drivers/route16.cpp b/src/mame/drivers/route16.cpp index 5f8d54ec606..37a8670ac97 100644 --- a/src/mame/drivers/route16.cpp +++ b/src/mame/drivers/route16.cpp @@ -598,6 +598,10 @@ MACHINE_START_MEMBER(route16_state, ttmahjng) save_item(NAME(m_ttmahjng_port_select)); } +DRIVER_INIT_MEMBER(route16_state, route16) +{ + save_item(NAME(m_protection_data)); +} static MACHINE_CONFIG_START( route16 ) @@ -1075,9 +1079,9 @@ READ8_MEMBER(route16_state::route16_prot_read) * *************************************/ -GAME( 1981, route16, 0, route16, route16, route16_state, 0, ROT270, "Tehkan / Sun Electronics (Centuri license)", "Route 16 (set 1)", MACHINE_SUPPORTS_SAVE ) -GAME( 1981, route16a, route16, route16, route16, route16_state, 0, ROT270, "Tehkan / Sun Electronics (Centuri license)", "Route 16 (set 2)", MACHINE_SUPPORTS_SAVE ) -GAME( 1981, route16c, route16, route16, route16, route16_state, 0, ROT270, "Tehkan / Sun Electronics (Centuri license)", "Route 16 (set 3, bootleg?)", MACHINE_SUPPORTS_SAVE ) // similar to set 1 but with some protection removed? +GAME( 1981, route16, 0, route16, route16, route16_state, route16, ROT270, "Tehkan / Sun Electronics (Centuri license)", "Route 16 (set 1)", MACHINE_SUPPORTS_SAVE ) +GAME( 1981, route16a, route16, route16, route16, route16_state, route16, ROT270, "Tehkan / Sun Electronics (Centuri license)", "Route 16 (set 2)", MACHINE_SUPPORTS_SAVE ) +GAME( 1981, route16c, route16, route16, route16, route16_state, route16, ROT270, "Tehkan / Sun Electronics (Centuri license)", "Route 16 (set 3, bootleg?)", MACHINE_SUPPORTS_SAVE ) // similar to set 1 but with some protection removed? GAME( 1981, route16bl,route16, route16, route16, route16_state, 0, ROT270, "bootleg (Leisure and Allied)", "Route 16 (bootleg)", MACHINE_SUPPORTS_SAVE ) GAME( 1981, routex, route16, routex, route16, route16_state, 0, ROT270, "bootleg", "Route X (bootleg)", MACHINE_SUPPORTS_SAVE ) diff --git a/src/mame/includes/route16.h b/src/mame/includes/route16.h index f56441b57fd..31eb658ad58 100644 --- a/src/mame/includes/route16.h +++ b/src/mame/includes/route16.h @@ -30,6 +30,7 @@ public: DECLARE_WRITE8_MEMBER(stratvox_sn76477_w); DECLARE_MACHINE_START(speakres); DECLARE_MACHINE_START(ttmahjng); + DECLARE_DRIVER_INIT(route16); uint32_t screen_update_route16(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); uint32_t screen_update_ttmahjng(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); |