mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
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:
parent
5bad55bea9
commit
47f4536618
@ -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()
|
||||
|
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user