summaryrefslogtreecommitdiffstats
path: root/src/core/memory/cheat_engine.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-12-16 17:46:51 +0100
committerGitHub <noreply@github.com>2023-12-16 17:46:51 +0100
commitb8f83aa4bf13f6783e31f190d530ef7be527bf49 (patch)
tree952d90666b0d253dce28742197d053d1db213eeb /src/core/memory/cheat_engine.cpp
parentssl: fix output byte buffer size issue (#12372) (diff)
parentcore: Make sure npad is initialized (diff)
downloadyuzu-b8f83aa4bf13f6783e31f190d530ef7be527bf49.tar
yuzu-b8f83aa4bf13f6783e31f190d530ef7be527bf49.tar.gz
yuzu-b8f83aa4bf13f6783e31f190d530ef7be527bf49.tar.bz2
yuzu-b8f83aa4bf13f6783e31f190d530ef7be527bf49.tar.lz
yuzu-b8f83aa4bf13f6783e31f190d530ef7be527bf49.tar.xz
yuzu-b8f83aa4bf13f6783e31f190d530ef7be527bf49.tar.zst
yuzu-b8f83aa4bf13f6783e31f190d530ef7be527bf49.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;