mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-25 15:15:40 +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");
|
Log_DevPrintf("%s debug dispatcher", use_debug_dispatcher ? "Now using" : "No longer using");
|
||||||
g_state.use_debug_dispatcher = use_debug_dispatcher;
|
g_state.use_debug_dispatcher = use_debug_dispatcher;
|
||||||
ExitExecution();
|
if (System::IsExecuting())
|
||||||
|
ExitExecution();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ExitExecution()
|
void ExitExecution()
|
||||||
|
|
|
@ -337,6 +337,12 @@ bool System::IsValid()
|
||||||
return s_state == State::Running || s_state == State::Paused;
|
return s_state == State::Running || s_state == State::Paused;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool System::IsExecuting()
|
||||||
|
{
|
||||||
|
DebugAssert(IsValid());
|
||||||
|
return s_system_executing;
|
||||||
|
}
|
||||||
|
|
||||||
bool System::IsStartupCancelled()
|
bool System::IsStartupCancelled()
|
||||||
{
|
{
|
||||||
return s_startup_cancelled.load();
|
return s_startup_cancelled.load();
|
||||||
|
|
|
@ -139,6 +139,7 @@ bool IsExecutionInterrupted();
|
||||||
bool IsPaused();
|
bool IsPaused();
|
||||||
bool IsShutdown();
|
bool IsShutdown();
|
||||||
bool IsValid();
|
bool IsValid();
|
||||||
|
bool IsExecuting();
|
||||||
|
|
||||||
bool IsStartupCancelled();
|
bool IsStartupCancelled();
|
||||||
void CancelPendingStartup();
|
void CancelPendingStartup();
|
||||||
|
|
Loading…
Reference in a new issue