From f0125b2be8ba34aaf07b8c9d04b866d29ceea53a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 16 Jul 2020 13:28:10 -0400 Subject: cpu_manager: Mark function getters as static All these do are return std::function instances of static functions, so these can be used without an instance of the CPU manager. --- src/core/hle/kernel/thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/hle/kernel/thread.cpp') diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 67148fa6d..d132aba34 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -155,7 +155,7 @@ ResultVal> Thread::Create(Core::System& system, ThreadTy std::string name, VAddr entry_point, u32 priority, u64 arg, s32 processor_id, VAddr stack_top, Process* owner_process) { - std::function init_func = system.GetCpuManager().GetGuestThreadStartFunc(); + std::function init_func = Core::CpuManager::GetGuestThreadStartFunc(); void* init_func_parameter = system.GetCpuManager().GetStartFuncParamater(); return Create(system, type_flags, name, entry_point, priority, arg, processor_id, stack_top, owner_process, std::move(init_func), init_func_parameter); -- cgit v1.2.3