Debugger: Tighten valid vmstate for the cpu interface

This commit is contained in:
Ty Lamontagne 2024-07-19 20:56:15 -04:00
parent cd4de28b9e
commit a08d8b3add
No known key found for this signature in database
GPG Key ID: 1B9139843421A974
1 changed files with 2 additions and 1 deletions

View File

@ -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()