diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-11-16 09:13:56 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-16 09:13:56 -0500 |
| commit | 9041ac3da1f2d97bf03881a93e7011118076a8a0 (patch) | |
| tree | b2a263584ca273e636ae76e9bf47b1974f4ef68e /src/core/memory/cheat_engine.cpp | |
| parent | 3254ed9634e013862f860e44ad992dc8f8780c45 (diff) | |
| parent | 174c52d27bc882402afc136bbb82e59fde96833a (diff) | |
Merge pull request #12038 from german77/no_implement
service: hid: Split hid.cpp into individual interfaces
Diffstat (limited to 'src/core/memory/cheat_engine.cpp')
| -rw-r--r-- | src/core/memory/cheat_engine.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp index 53a89cc8f3..da140c01c7 100644 --- a/src/core/memory/cheat_engine.cpp +++ b/src/core/memory/cheat_engine.cpp @@ -10,7 +10,8 @@ #include "core/hle/kernel/k_page_table.h" #include "core/hle/kernel/k_process.h" #include "core/hle/service/hid/controllers/npad.h" -#include "core/hle/service/hid/hid.h" +#include "core/hle/service/hid/hid_server.h" +#include "core/hle/service/hid/resource_manager.h" #include "core/hle/service/sm/sm.h" #include "core/memory.h" #include "core/memory/cheat_engine.h" @@ -54,13 +55,13 @@ void StandardVmCallbacks::MemoryWrite(VAddr address, const void* data, u64 size) } u64 StandardVmCallbacks::HidKeysDown() { - const auto hid = system.ServiceManager().GetService<Service::HID::Hid>("hid"); + const auto hid = system.ServiceManager().GetService<Service::HID::IHidServer>("hid"); if (hid == nullptr) { LOG_WARNING(CheatEngine, "Attempted to read input state, but hid is not initialized!"); return 0; } - const auto applet_resource = hid->GetAppletResource(); + const auto applet_resource = hid->GetResourceManager(); if (applet_resource == nullptr) { LOG_WARNING(CheatEngine, "Attempted to read input state, but applet resource is not initialized!"); |
