machine.c: save m_rand_seed, fixes save state regressons in at least the following games - drivers: bmcpokr - bmcpokr.c, centipdb, caterplr, millpac - centiped.c, jngolady - jangou.c, rivieraa - merit.c (nw)

device.c: fix typo (nw)
This commit is contained in:
Osso 2014-12-18 18:15:42 +01:00
parent 5bad55bea9
commit 47f4536618
2 changed files with 5 additions and 2 deletions

View File

@ -626,7 +626,7 @@ void device_t::device_pre_save()
//-------------------------------------------------
// device_post_load - called after the loading a
// saved state, so that registered variables can
// be expaneded as necessary
// be expanded as necessary
//-------------------------------------------------
void device_t::device_post_load()

View File

@ -255,7 +255,10 @@ void running_machine::start()
primary_screen->register_vblank_callback(vblank_state_delegate(FUNC(running_machine::watchdog_vblank), this));
save().save_item(NAME(m_watchdog_enabled));
save().save_item(NAME(m_watchdog_counter));
// save the random seed or save states might be broken in drivers that use the rand() method
save().save_item(NAME(m_rand_seed));
// initialize image devices
image_init(*this);
m_tilemap.reset(global_alloc(tilemap_manager(*this)));