Skip to content

Commit

Permalink
Debugger: Tighten valid vmstate for the cpu interface
Browse files Browse the repository at this point in the history
  • Loading branch information
F0bes committed Jul 20, 2024
1 parent cd4de28 commit a08d8b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pcsx2/DebugTools/DebugInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a08d8b3

Please sign in to comment.