diff options
author | bunnei <bunneidev@gmail.com> | 2021-08-14 11:14:19 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-08-14 11:14:19 +0200 |
commit | aef0ca6f0d422623f46f47c15e9a4c9b5fd04dd0 (patch) | |
tree | f82819f5b1470345ea3aab20ba18eba67afe63e5 /src/core/hle/kernel/k_thread.cpp | |
parent | core: hle: kernel: k_thread: Mark KScopedDisableDispatch as nodiscard. (diff) | |
download | yuzu-aef0ca6f0d422623f46f47c15e9a4c9b5fd04dd0.tar yuzu-aef0ca6f0d422623f46f47c15e9a4c9b5fd04dd0.tar.gz yuzu-aef0ca6f0d422623f46f47c15e9a4c9b5fd04dd0.tar.bz2 yuzu-aef0ca6f0d422623f46f47c15e9a4c9b5fd04dd0.tar.lz yuzu-aef0ca6f0d422623f46f47c15e9a4c9b5fd04dd0.tar.xz yuzu-aef0ca6f0d422623f46f47c15e9a4c9b5fd04dd0.tar.zst yuzu-aef0ca6f0d422623f46f47c15e9a4c9b5fd04dd0.zip |
Diffstat (limited to 'src/core/hle/kernel/k_thread.cpp')
-rw-r--r-- | src/core/hle/kernel/k_thread.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp index 89653e0cb..0f6808ade 100644 --- a/src/core/hle/kernel/k_thread.cpp +++ b/src/core/hle/kernel/k_thread.cpp @@ -14,6 +14,7 @@ #include "common/fiber.h" #include "common/logging/log.h" #include "common/scope_exit.h" +#include "common/settings.h" #include "common/thread_queue_list.h" #include "core/core.h" #include "core/cpu_manager.h" @@ -215,9 +216,10 @@ ResultCode KThread::InitializeThread(KThread* thread, KThreadFunction func, uint // Initialize the thread. R_TRY(thread->Initialize(func, arg, user_stack_top, prio, core, owner, type)); - // Initialize host context. + // Initialize emulation parameters. thread->host_context = std::make_shared<Common::Fiber>(std::move(init_func), init_func_parameter); + thread->is_single_core = !Settings::values.use_multi_core.GetValue(); return ResultSuccess; } |