mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-29 00:55:41 +00:00
CPU: Fix crash on breakpoint add/trace enable
This commit is contained in:
parent
720b5c1e9d
commit
92b1c21b8a
|
@ -1770,7 +1770,8 @@ void UpdateDebugDispatcherFlag()
|
|||
|
||||
Log_DevPrintf("%s debug dispatcher", use_debug_dispatcher ? "Now using" : "No longer using");
|
||||
g_state.use_debug_dispatcher = use_debug_dispatcher;
|
||||
ExitExecution();
|
||||
if (System::IsExecuting())
|
||||
ExitExecution();
|
||||
}
|
||||
|
||||
void ExitExecution()
|
||||
|
|
|
@ -337,6 +337,12 @@ bool System::IsValid()
|
|||
return s_state == State::Running || s_state == State::Paused;
|
||||
}
|
||||
|
||||
bool System::IsExecuting()
|
||||
{
|
||||
DebugAssert(IsValid());
|
||||
return s_system_executing;
|
||||
}
|
||||
|
||||
bool System::IsStartupCancelled()
|
||||
{
|
||||
return s_startup_cancelled.load();
|
||||
|
|
|
@ -139,6 +139,7 @@ bool IsExecutionInterrupted();
|
|||
bool IsPaused();
|
||||
bool IsShutdown();
|
||||
bool IsValid();
|
||||
bool IsExecuting();
|
||||
|
||||
bool IsStartupCancelled();
|
||||
void CancelPendingStartup();
|
||||
|
|
Loading…
Reference in a new issue