From 21a5ab58954f8f7559e955b5d965e1f21dbaaa87 Mon Sep 17 00:00:00 2001 From: smf- Date: Wed, 22 May 2013 17:59:48 +0000 Subject: [PATCH] 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] --- src/emu/machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/machine.c b/src/emu/machine.c index 4e5d12910cf..d3c7b34c4c9 100644 --- a/src/emu/machine.c +++ b/src/emu/machine.c @@ -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();