mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-16 04:09:39 +00:00
Core: Fix RunOnCPUThread to only directly run the function when Core::IsUninitialized.
This commit is contained in:
parent
56532c850f
commit
eb74d48295
@ -844,7 +844,7 @@ void RunOnCPUThread(Core::System& system, Common::MoveOnlyFunction<void()> funct
|
||||
// Pause the CPU (set it to stepping mode).
|
||||
const bool was_running = PauseAndLock(system);
|
||||
|
||||
if (!IsRunning(system))
|
||||
if (IsUninitialized(system))
|
||||
{
|
||||
// If the core hasn't been started, there is no active CPU thread we can race against.
|
||||
function();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user