Core: Fix RunOnCPUThread to only directly run the function when Core::IsUninitialized.

This commit is contained in:
Jordan Woyak 2025-11-16 16:08:05 -06:00
parent 56532c850f
commit eb74d48295

View File

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