polepos.cpp: Support save states

This commit is contained in:
AJR 2019-05-15 20:41:22 -04:00
parent ab8dbd3db0
commit 55ccd4496e
4 changed files with 19 additions and 15 deletions

View File

@ -170,6 +170,9 @@ void namco_52xx_device::device_start()
m_extclock_pulse_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(namco_52xx_device::external_clock_pulse), this));
m_extclock_pulse_timer->adjust(attotime(0, m_extclock), 0, attotime(0, m_extclock));
}
save_item(NAME(m_latched_cmd));
save_item(NAME(m_address));
}
//-------------------------------------------------

View File

@ -129,6 +129,7 @@ namco_54xx_device::namco_54xx_device(const machine_config &mconfig, const char *
void namco_54xx_device::device_start()
{
save_item(NAME(m_latched_cmd));
}
//-------------------------------------------------

View File

@ -403,6 +403,7 @@ void polepos_state::machine_start()
save_item(NAME(m_last_unsigned));
save_item(NAME(m_adc_input));
save_item(NAME(m_auto_start_mask));
save_item(NAME(m_sub_irq_mask));
}
void polepos_state::machine_reset()
@ -2450,18 +2451,18 @@ void polepos_state::init_polepos2()
*********************************************************************/
/* YEAR NAME PARENT MACHINE INPUT STATE INIT ROT COMPANY FULLNAME FLAGS */
GAME( 1982, polepos, 0, polepos, poleposa, polepos_state, empty_init, ROT0, "Namco", "Pole Position (World)", 0 )
GAME( 1982, poleposj, polepos, polepos, polepos, polepos_state, empty_init, ROT0, "Namco", "Pole Position (Japan)", 0 )
GAME( 1982, poleposa1, polepos, polepos, poleposa, polepos_state, empty_init, ROT0, "Namco (Atari license)", "Pole Position (Atari version 1)", 0 )
GAME( 1982, poleposa2, polepos, polepos, poleposa, polepos_state, empty_init, ROT0, "Namco (Atari license)", "Pole Position (Atari version 2)", 0 )
GAME( 1984, topracer, polepos, polepos, polepos, polepos_state, empty_init, ROT0, "bootleg", "Top Racer (with MB8841 + MB8842, 1984)", 0 ) // the NAMCO customs have been cloned on these bootlegs
GAME( 1983, topracera, polepos, polepos, polepos, polepos_state, empty_init, ROT0, "bootleg", "Top Racer (with MB8841 + MB8842, 1983)", 0 ) // the only difference between them is the year displayed on the title screen
GAME( 1983, ppspeed, polepos, polepos, polepos, polepos_state, empty_init, ROT0, "bootleg", "Speed Up (Spanish bootleg of Pole Position)", 0 ) // very close to topracer / topracera
GAME( 1982, topracern, polepos, topracern, topracern, polepos_state, empty_init, ROT0, "bootleg", "Top Racer (no MB8841 + MB8842)", MACHINE_IMPERFECT_SOUND ) // explosion sound generator missing
GAME( 1982, polepos, 0, polepos, poleposa, polepos_state, empty_init, ROT0, "Namco", "Pole Position (World)", MACHINE_SUPPORTS_SAVE )
GAME( 1982, poleposj, polepos, polepos, polepos, polepos_state, empty_init, ROT0, "Namco", "Pole Position (Japan)", MACHINE_SUPPORTS_SAVE )
GAME( 1982, poleposa1, polepos, polepos, poleposa, polepos_state, empty_init, ROT0, "Namco (Atari license)", "Pole Position (Atari version 1)", MACHINE_SUPPORTS_SAVE )
GAME( 1982, poleposa2, polepos, polepos, poleposa, polepos_state, empty_init, ROT0, "Namco (Atari license)", "Pole Position (Atari version 2)", MACHINE_SUPPORTS_SAVE )
GAME( 1984, topracer, polepos, polepos, polepos, polepos_state, empty_init, ROT0, "bootleg", "Top Racer (with MB8841 + MB8842, 1984)", MACHINE_SUPPORTS_SAVE ) // the NAMCO customs have been cloned on these bootlegs
GAME( 1983, topracera, polepos, polepos, polepos, polepos_state, empty_init, ROT0, "bootleg", "Top Racer (with MB8841 + MB8842, 1983)", MACHINE_SUPPORTS_SAVE ) // the only difference between them is the year displayed on the title screen
GAME( 1983, ppspeed, polepos, polepos, polepos, polepos_state, empty_init, ROT0, "bootleg", "Speed Up (Spanish bootleg of Pole Position)", MACHINE_SUPPORTS_SAVE ) // very close to topracer / topracera
GAME( 1982, topracern, polepos, topracern, topracern, polepos_state, empty_init, ROT0, "bootleg", "Top Racer (no MB8841 + MB8842)", MACHINE_SUPPORTS_SAVE | MACHINE_IMPERFECT_SOUND ) // explosion sound generator missing
GAME( 1983, polepos2, 0, polepos, polepos2j, polepos_state, init_polepos2, ROT0, "Namco", "Pole Position II (Japan)", 0 )
GAME( 1983, polepos2a, polepos2, polepos, polepos2, polepos_state, init_polepos2, ROT0, "Namco (Atari license)", "Pole Position II (Atari)", 0 )
GAME( 1983, polepos2b, polepos2, polepos, polepos2, polepos_state, empty_init, ROT0, "bootleg", "Pole Position II (bootleg)", 0 )
GAME( 1984, polepos2bi, polepos2, polepos2bi, polepos2bi,polepos_state, empty_init, ROT0, "bootleg", "Gran Premio F1 (Italian bootleg of Pole Position II)", MACHINE_IMPERFECT_COLORS | MACHINE_IMPERFECT_SOUND )
GAME( 1984, polepos2bs, polepos2, polepos2bi, polepos2bi,polepos_state, empty_init, ROT0, "bootleg (BCN Internacional S.A.)", "Gran Premio F1 (Spanish bootleg of Pole Position II)", MACHINE_IMPERFECT_COLORS | MACHINE_IMPERFECT_SOUND )
GAME( 1984, grally, polepos2, polepos2bi, polepos2bi,polepos_state, empty_init, ROT0, "bootleg (Niemer)", "Gran Rally (Spanish bootleg of Pole Position II)", MACHINE_IMPERFECT_COLORS | MACHINE_IMPERFECT_SOUND )
GAME( 1983, polepos2, 0, polepos, polepos2j, polepos_state, init_polepos2, ROT0, "Namco", "Pole Position II (Japan)", MACHINE_SUPPORTS_SAVE )
GAME( 1983, polepos2a, polepos2, polepos, polepos2, polepos_state, init_polepos2, ROT0, "Namco (Atari license)", "Pole Position II (Atari)", MACHINE_SUPPORTS_SAVE )
GAME( 1983, polepos2b, polepos2, polepos, polepos2, polepos_state, empty_init, ROT0, "bootleg", "Pole Position II (bootleg)", MACHINE_SUPPORTS_SAVE )
GAME( 1984, polepos2bi, polepos2, polepos2bi, polepos2bi,polepos_state, empty_init, ROT0, "bootleg", "Gran Premio F1 (Italian bootleg of Pole Position II)", MACHINE_SUPPORTS_SAVE | MACHINE_IMPERFECT_COLORS | MACHINE_IMPERFECT_SOUND )
GAME( 1984, polepos2bs, polepos2, polepos2bi, polepos2bi,polepos_state, empty_init, ROT0, "bootleg (BCN Internacional S.A.)", "Gran Premio F1 (Spanish bootleg of Pole Position II)", MACHINE_SUPPORTS_SAVE | MACHINE_IMPERFECT_COLORS | MACHINE_IMPERFECT_SOUND )
GAME( 1984, grally, polepos2, polepos2bi, polepos2bi,polepos_state, empty_init, ROT0, "bootleg (Niemer)", "Gran Rally (Spanish bootleg of Pole Position II)", MACHINE_SUPPORTS_SAVE | MACHINE_IMPERFECT_COLORS | MACHINE_IMPERFECT_SOUND )

View File

@ -196,7 +196,6 @@ void polepos_state::video_start()
save_item(NAME(m_road16_vscroll));
save_item(NAME(m_chacl));
save_item(NAME(m_scroll));
save_item(NAME(m_sub_irq_mask));
}