summaryrefslogtreecommitdiffstats
path: root/src/core/memory/cheat_engine.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-12-15 03:04:38 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2023-12-15 03:04:38 +0100
commite8ad603cd9eb198911787f747cdea38d424da838 (patch)
treec56b5098483f619bc95f67b0acaf1daf4189ccb5 /src/core/memory/cheat_engine.cpp
parentcore: hid: Clean up headers (diff)
downloadyuzu-e8ad603cd9eb198911787f747cdea38d424da838.tar
yuzu-e8ad603cd9eb198911787f747cdea38d424da838.tar.gz
yuzu-e8ad603cd9eb198911787f747cdea38d424da838.tar.bz2
yuzu-e8ad603cd9eb198911787f747cdea38d424da838.tar.lz
yuzu-e8ad603cd9eb198911787f747cdea38d424da838.tar.xz
yuzu-e8ad603cd9eb198911787f747cdea38d424da838.tar.zst
yuzu-e8ad603cd9eb198911787f747cdea38d424da838.zip
Diffstat (limited to 'src/core/memory/cheat_engine.cpp')
-rw-r--r--src/core/memory/cheat_engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp
index db30ba598..3fc4024dc 100644
--- a/src/core/memory/cheat_engine.cpp
+++ b/src/core/memory/cheat_engine.cpp
@@ -62,7 +62,7 @@ u64 StandardVmCallbacks::HidKeysDown() {
}
const auto applet_resource = hid->GetResourceManager();
- if (applet_resource == nullptr) {
+ if (applet_resource == nullptr || applet_resource->GetNpad() == nullptr) {
LOG_WARNING(CheatEngine,
"Attempted to read input state, but applet resource is not initialized!");
return 0;