diff options
| author | 2023-11-14 21:34:27 -0600 | |
|---|---|---|
| committer | 2023-11-15 09:59:54 -0600 | |
| commit | c9cd938dfd8fc40ec58d61dc453bc31d3b811496 (patch) | |
| tree | 212bc48872c33d21a9cf47b8c779a71cb04051f5 /src/core/memory | |
| parent | Merge pull request #12032 from liamwhite/fruit-compiler (diff) | |
| download | yuzu-c9cd938dfd8fc40ec58d61dc453bc31d3b811496.tar.gz yuzu-c9cd938dfd8fc40ec58d61dc453bc31d3b811496.tar.xz yuzu-c9cd938dfd8fc40ec58d61dc453bc31d3b811496.zip | |
service: hid: Split hid.cpp into individual interfaces
Diffstat (limited to 'src/core/memory')
| -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 53a89cc8f..da140c01c 100644 --- a/src/core/memory/cheat_engine.cpp +++ b/src/core/memory/cheat_engine.cpp | |||
| @@ -10,7 +10,8 @@ | |||
| 10 | #include "core/hle/kernel/k_page_table.h" | 10 | #include "core/hle/kernel/k_page_table.h" |
| 11 | #include "core/hle/kernel/k_process.h" | 11 | #include "core/hle/kernel/k_process.h" |
| 12 | #include "core/hle/service/hid/controllers/npad.h" | 12 | #include "core/hle/service/hid/controllers/npad.h" |
| 13 | #include "core/hle/service/hid/hid.h" | 13 | #include "core/hle/service/hid/hid_server.h" |
| 14 | #include "core/hle/service/hid/resource_manager.h" | ||
| 14 | #include "core/hle/service/sm/sm.h" | 15 | #include "core/hle/service/sm/sm.h" |
| 15 | #include "core/memory.h" | 16 | #include "core/memory.h" |
| 16 | #include "core/memory/cheat_engine.h" | 17 | #include "core/memory/cheat_engine.h" |
| @@ -54,13 +55,13 @@ void StandardVmCallbacks::MemoryWrite(VAddr address, const void* data, u64 size) | |||
| 54 | } | 55 | } |
| 55 | 56 | ||
| 56 | u64 StandardVmCallbacks::HidKeysDown() { | 57 | u64 StandardVmCallbacks::HidKeysDown() { |
| 57 | const auto hid = system.ServiceManager().GetService<Service::HID::Hid>("hid"); | 58 | const auto hid = system.ServiceManager().GetService<Service::HID::IHidServer>("hid"); |
| 58 | if (hid == nullptr) { | 59 | if (hid == nullptr) { |
| 59 | LOG_WARNING(CheatEngine, "Attempted to read input state, but hid is not initialized!"); | 60 | LOG_WARNING(CheatEngine, "Attempted to read input state, but hid is not initialized!"); |
| 60 | return 0; | 61 | return 0; |
| 61 | } | 62 | } |
| 62 | 63 | ||
| 63 | const auto applet_resource = hid->GetAppletResource(); | 64 | const auto applet_resource = hid->GetResourceManager(); |
| 64 | if (applet_resource == nullptr) { | 65 | if (applet_resource == nullptr) { |
| 65 | LOG_WARNING(CheatEngine, | 66 | LOG_WARNING(CheatEngine, |
| 66 | "Attempted to read input state, but applet resource is not initialized!"); | 67 | "Attempted to read input state, but applet resource is not initialized!"); |