aboutsummaryrefslogtreecommitdiff
path: root/src/core/memory/cheat_engine.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-12-16 11:46:51 -0500
committerGitHub <noreply@github.com>2023-12-16 11:46:51 -0500
commita582f9519dbed5f502366250da38ba26b176c380 (patch)
tree952d90666b0d253dce28742197d053d1db213eeb /src/core/memory/cheat_engine.cpp
parent6238976dc6ab0cf71e54c47be30cc32384a33322 (diff)
parentfd0ac567a50cf7cfa731ef1c8fb6531d56f73b01 (diff)
Merge pull request #12359 from german77/real_shared
service: hid: Allow to create multiple instances of shared memory
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 db30ba598c..3fc4024dc7 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;