diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2019-09-21 10:49:44 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2019-09-22 08:30:30 +0200 |
commit | 07823b61a1ef924ba8f0d14710afc6e715bfe52f (patch) | |
tree | f4c24231970bad5bc67d2c74178252743dd2f565 /src/core/hle/service/hid/irs.cpp | |
parent | Deglobalize System: Hid (diff) | |
download | yuzu-07823b61a1ef924ba8f0d14710afc6e715bfe52f.tar yuzu-07823b61a1ef924ba8f0d14710afc6e715bfe52f.tar.gz yuzu-07823b61a1ef924ba8f0d14710afc6e715bfe52f.tar.bz2 yuzu-07823b61a1ef924ba8f0d14710afc6e715bfe52f.tar.lz yuzu-07823b61a1ef924ba8f0d14710afc6e715bfe52f.tar.xz yuzu-07823b61a1ef924ba8f0d14710afc6e715bfe52f.tar.zst yuzu-07823b61a1ef924ba8f0d14710afc6e715bfe52f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/hid/irs.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/hid/irs.cpp b/src/core/hle/service/hid/irs.cpp index 2c4625c99..5e79e2c1a 100644 --- a/src/core/hle/service/hid/irs.cpp +++ b/src/core/hle/service/hid/irs.cpp @@ -11,7 +11,7 @@ namespace Service::HID { -IRS::IRS() : ServiceFramework{"irs"} { +IRS::IRS(Core::System& system) : ServiceFramework{"irs"}, system(system) { // clang-format off static const FunctionInfo functions[] = { {302, &IRS::ActivateIrsensor, "ActivateIrsensor"}, @@ -37,7 +37,7 @@ IRS::IRS() : ServiceFramework{"irs"} { RegisterHandlers(functions); - auto& kernel = Core::System::GetInstance().Kernel(); + auto& kernel = system.Kernel(); shared_mem = Kernel::SharedMemory::Create( kernel, nullptr, 0x8000, Kernel::MemoryPermission::ReadWrite, Kernel::MemoryPermission::Read, 0, Kernel::MemoryRegion::BASE, "IRS:SharedMemory"); @@ -98,7 +98,7 @@ void IRS::GetImageTransferProcessorState(Kernel::HLERequestContext& ctx) { IPC::ResponseBuilder rb{ctx, 5}; rb.Push(RESULT_SUCCESS); - rb.PushRaw<u64>(Core::System::GetInstance().CoreTiming().GetTicks()); + rb.PushRaw<u64>(system.CoreTiming().GetTicks()); rb.PushRaw<u32>(0); } |