mirror of
https://github.com/holub/mame
synced 2025-05-20 12:48:53 +03:00
Register the device post load after the devices are started, in case starting the device causes something (like sound_stream) to register it's own post load [smf]
This commit is contained in:
parent
bad0c9d34f
commit
21a5ab5895
@ -320,8 +320,8 @@ void running_machine::start()
|
||||
add_notifier(MACHINE_NOTIFY_RESET, machine_notify_delegate(FUNC(running_machine::reset_all_devices), this));
|
||||
add_notifier(MACHINE_NOTIFY_EXIT, machine_notify_delegate(FUNC(running_machine::stop_all_devices), this));
|
||||
save().register_presave(save_prepost_delegate(FUNC(running_machine::presave_all_devices), this));
|
||||
save().register_postload(save_prepost_delegate(FUNC(running_machine::postload_all_devices), this));
|
||||
start_all_devices();
|
||||
save().register_postload(save_prepost_delegate(FUNC(running_machine::postload_all_devices), this));
|
||||
|
||||
// if we're coming in with a savegame request, process it now
|
||||
const char *savegame = options().state();
|
||||
|
Loading…
Reference in New Issue
Block a user