From a08d8b3addc8ec7f2c9a3d69a23a09a4de4d623d Mon Sep 17 00:00:00 2001 From: Ty Lamontagne Date: Fri, 19 Jul 2024 20:56:15 -0400 Subject: [PATCH] Debugger: Tighten valid vmstate for the cpu interface --- pcsx2/DebugTools/DebugInterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcsx2/DebugTools/DebugInterface.cpp b/pcsx2/DebugTools/DebugInterface.cpp index 7d2ffadfd3..fa316fa0d2 100644 --- a/pcsx2/DebugTools/DebugInterface.cpp +++ b/pcsx2/DebugTools/DebugInterface.cpp @@ -218,7 +218,8 @@ bool DebugInterface::m_pause_on_entry = false; bool DebugInterface::isAlive() { - return VMManager::HasValidVM() && g_FrameCount > 0; + const VMState state = VMManager::GetState(); + return (state == VMState::Running || state == VMState::Paused) && g_FrameCount > 0; } bool DebugInterface::isCpuPaused()