mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-11-18 01:38:08 -06:00
Merge pull request #14978 from JoshuaVandaele/quick-stop-hang
CPU: Fix quickly-stopped games hanging Dolphin
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user