diff --git a/src/xenia/emulator.cc b/src/xenia/emulator.cc index ae64b8c9f..4da09db80 100644 --- a/src/xenia/emulator.cc +++ b/src/xenia/emulator.cc @@ -1707,6 +1707,11 @@ X_STATUS Emulator::CompleteLaunch(const std::filesystem::path& path, } } + // Resume the main thread now. + // If the debugger has requested a suspend this will just decrement the + // suspend count without resuming it until the debugger wants. + main_thread_->Resume(); + return X_STATUS_SUCCESS; } diff --git a/src/xenia/kernel/kernel_state.cc b/src/xenia/kernel/kernel_state.cc index dce43d151..412610575 100644 --- a/src/xenia/kernel/kernel_state.cc +++ b/src/xenia/kernel/kernel_state.cc @@ -426,11 +426,6 @@ object_ref KernelState::LaunchModule(object_ref module) { // Waits for a debugger client, if desired. emulator()->processor()->PreLaunch(); - // Resume the thread now. - // If the debugger has requested a suspend this will just decrement the - // suspend count without resuming it until the debugger wants. - thread->Resume(); - return thread; }