diff options
author | Lioncash <mathew1800@gmail.com> | 2018-10-28 22:44:46 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-10-28 22:45:29 +0100 |
commit | a973a049b7c55751cd70545d9ea0dbe1ff720f7e (patch) | |
tree | 8e420102bf7f5963ebf000090ad608b0a5a83499 /src/core/hle/kernel/kernel.cpp | |
parent | core: Add missing const variants of getters for the System class (diff) | |
download | yuzu-a973a049b7c55751cd70545d9ea0dbe1ff720f7e.tar yuzu-a973a049b7c55751cd70545d9ea0dbe1ff720f7e.tar.gz yuzu-a973a049b7c55751cd70545d9ea0dbe1ff720f7e.tar.bz2 yuzu-a973a049b7c55751cd70545d9ea0dbe1ff720f7e.tar.lz yuzu-a973a049b7c55751cd70545d9ea0dbe1ff720f7e.tar.xz yuzu-a973a049b7c55751cd70545d9ea0dbe1ff720f7e.tar.zst yuzu-a973a049b7c55751cd70545d9ea0dbe1ff720f7e.zip |
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 4b6b32dd5..1fd4ba5d2 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -32,7 +32,7 @@ namespace Kernel { */ static void ThreadWakeupCallback(u64 thread_handle, [[maybe_unused]] int cycles_late) { const auto proper_handle = static_cast<Handle>(thread_handle); - auto& system = Core::System::GetInstance(); + const auto& system = Core::System::GetInstance(); // Lock the global kernel mutex when we enter the kernel HLE. std::lock_guard<std::recursive_mutex> lock(HLE::g_hle_lock); @@ -90,7 +90,7 @@ static void ThreadWakeupCallback(u64 thread_handle, [[maybe_unused]] int cycles_ /// The timer callback event, called when a timer is fired static void TimerCallback(u64 timer_handle, int cycles_late) { const auto proper_handle = static_cast<Handle>(timer_handle); - auto& system = Core::System::GetInstance(); + const auto& system = Core::System::GetInstance(); SharedPtr<Timer> timer = system.Kernel().RetrieveTimerFromCallbackHandleTable(proper_handle); if (timer == nullptr) { |