Merge pull request #14978 from JoshuaVandaele/quick-stop-hang

CPU: Fix quickly-stopped games hanging Dolphin
This commit is contained in:
JosJuice authored and GitHub committed 2026-11-14 20:03:07 +01:00
commit be0e304c02
1 file changed
+5 -1
+5 -1
View File
@@ -32,7 +32,11 @@ CPUManager::~CPUManager() = default;
void CPUManager::Init(PowerPC::CPUCore cpu_core)
{
m_system.GetPowerPC().Init(cpu_core);
m_state = State::Stepping;
std::lock_guard state_lock(m_state_change_lock);
// A stop may have been requested while the core was booting, in which case don't overwrite it.
if (Core::GetState(m_system) != Core::State::Stopping)
m_state = State::Stepping;
}
void CPUManager::Shutdown()