summaryrefslogtreecommitdiff
path: root/src/core/memory
diff options
context:
space:
mode:
authorGravatar liamwhite2023-12-16 11:46:51 -0500
committerGravatar GitHub2023-12-16 11:46:51 -0500
commitb8f83aa4bf13f6783e31f190d530ef7be527bf49 (patch)
tree952d90666b0d253dce28742197d053d1db213eeb /src/core/memory
parentssl: fix output byte buffer size issue (#12372) (diff)
parentcore: Make sure npad is initialized (diff)
downloadyuzu-b8f83aa4bf13f6783e31f190d530ef7be527bf49.tar.gz
yuzu-b8f83aa4bf13f6783e31f190d530ef7be527bf49.tar.xz
yuzu-b8f83aa4bf13f6783e31f190d530ef7be527bf49.zip
Merge pull request #12359 from german77/real_shared
service: hid: Allow to create multiple instances of shared memory
Diffstat (limited to 'src/core/memory')
-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() {
62 } 62 }
63 63
64 const auto applet_resource = hid->GetResourceManager(); 64 const auto applet_resource = hid->GetResourceManager();
65 if (applet_resource == nullptr) { 65 if (applet_resource == nullptr || applet_resource->GetNpad() == nullptr) {
66 LOG_WARNING(CheatEngine, 66 LOG_WARNING(CheatEngine,
67 "Attempted to read input state, but applet resource is not initialized!"); 67 "Attempted to read input state, but applet resource is not initialized!");
68 return 0; 68 return 0;