mirror of https://github.com/PCSX2/pcsx2.git
VMManager: Only exit CPU execution if we were running
Fixes crash if you were paused when you shut down the VM with the EE interpreter enabled.
This commit is contained in:
parent
1012dba8d7
commit
5c67438925
|
@ -209,7 +209,7 @@ void VMManager::SetState(VMState state)
|
|||
else
|
||||
Host::OnVMResumed();
|
||||
}
|
||||
else if (state == VMState::Stopping)
|
||||
else if (state == VMState::Stopping && old_state == VMState::Running)
|
||||
{
|
||||
// If stopping, break execution as soon as possible.
|
||||
Cpu->ExitExecution();
|
||||
|
|
Loading…
Reference in New Issue