From 98bd78ce3c3e337469b8fbe64596d0dbb51d5776 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Tue, 13 Apr 2021 01:34:43 -0700 Subject: Save states working again. Changed to save persistent timers directly, using the save buffer only for transient timers. Now saving quantum state as well. Switched to using an array for that. --- src/emu/debug/debugcpu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/emu/debug/debugcpu.cpp') diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp index cf1d8eb5318..7d12eff74f6 100644 --- a/src/emu/debug/debugcpu.cpp +++ b/src/emu/debug/debugcpu.cpp @@ -835,7 +835,7 @@ void device_debug::instruction_hook(offs_t curpc) machine.debugger().console().process_source_file(); // if an event got scheduled, resume - if (machine.scheduled_event_pending()) + if (machine.exit_or_hard_reset_pending()) debugcpu.set_execution_running(); } machine.sound().debugger_mute(false); @@ -1597,7 +1597,7 @@ void device_debug::compute_debug_flags() machine.debug_flags |= DEBUG_FLAG_ENABLED; // if we are ignoring this CPU, or if events are pending, we're done - if ((m_flags & DEBUG_FLAG_OBSERVING) == 0 || machine.scheduled_event_pending() || machine.save_or_load_pending()) + if ((m_flags & DEBUG_FLAG_OBSERVING) == 0 || machine.exit_or_hard_reset_pending() || machine.save_or_load_pending()) return; // if we're stopped, keep calling the hook -- cgit v1.2.3