summaryrefslogtreecommitdiffstats
path: root/src/core/memory/cheat_engine.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-11-15 04:34:27 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2023-11-15 16:59:54 +0100
commitc9cd938dfd8fc40ec58d61dc453bc31d3b811496 (patch)
tree212bc48872c33d21a9cf47b8c779a71cb04051f5 /src/core/memory/cheat_engine.cpp
parentMerge pull request #12032 from liamwhite/fruit-compiler (diff)
downloadyuzu-c9cd938dfd8fc40ec58d61dc453bc31d3b811496.tar
yuzu-c9cd938dfd8fc40ec58d61dc453bc31d3b811496.tar.gz
yuzu-c9cd938dfd8fc40ec58d61dc453bc31d3b811496.tar.bz2
yuzu-c9cd938dfd8fc40ec58d61dc453bc31d3b811496.tar.lz
yuzu-c9cd938dfd8fc40ec58d61dc453bc31d3b811496.tar.xz
yuzu-c9cd938dfd8fc40ec58d61dc453bc31d3b811496.tar.zst
yuzu-c9cd938dfd8fc40ec58d61dc453bc31d3b811496.zip
Diffstat (limited to 'src/core/memory/cheat_engine.cpp')
-rw-r--r--src/core/memory/cheat_engine.cpp7
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 @@
#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!");