summaryrefslogtreecommitdiffstats
path: root/src/core/memory
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-11-17 18:46:26 +0100
committergerman77 <juangerman-13@hotmail.com>2023-11-21 00:19:17 +0100
commitcff2d0e19e164d879b57bab9d06306fa70a1049e (patch)
treed3288aa0bc2b7988a492fe51bc04e2c822ceb275 /src/core/memory
parentMerge pull request #12011 from Macj0rdan/controller-applet (diff)
downloadyuzu-cff2d0e19e164d879b57bab9d06306fa70a1049e.tar
yuzu-cff2d0e19e164d879b57bab9d06306fa70a1049e.tar.gz
yuzu-cff2d0e19e164d879b57bab9d06306fa70a1049e.tar.bz2
yuzu-cff2d0e19e164d879b57bab9d06306fa70a1049e.tar.lz
yuzu-cff2d0e19e164d879b57bab9d06306fa70a1049e.tar.xz
yuzu-cff2d0e19e164d879b57bab9d06306fa70a1049e.tar.zst
yuzu-cff2d0e19e164d879b57bab9d06306fa70a1049e.zip
Diffstat (limited to 'src/core/memory')
-rw-r--r--src/core/memory/cheat_engine.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp
index da140c01c..db30ba598 100644
--- a/src/core/memory/cheat_engine.cpp
+++ b/src/core/memory/cheat_engine.cpp
@@ -68,10 +68,7 @@ u64 StandardVmCallbacks::HidKeysDown() {
return 0;
}
- const auto press_state =
- applet_resource
- ->GetController<Service::HID::Controller_NPad>(Service::HID::HidController::NPad)
- .GetAndResetPressState();
+ const auto press_state = applet_resource->GetNpad()->GetAndResetPressState();
return static_cast<u64>(press_state & HID::NpadButton::All);
}