diff options
| author | 2023-12-14 20:04:38 -0600 | |
|---|---|---|
| committer | 2023-12-14 20:04:38 -0600 | |
| commit | e8ad603cd9eb198911787f747cdea38d424da838 (patch) | |
| tree | c56b5098483f619bc95f67b0acaf1daf4189ccb5 /src/core/memory | |
| parent | core: hid: Clean up headers (diff) | |
| download | yuzu-e8ad603cd9eb198911787f747cdea38d424da838.tar.gz yuzu-e8ad603cd9eb198911787f747cdea38d424da838.tar.xz yuzu-e8ad603cd9eb198911787f747cdea38d424da838.zip | |
core: Make sure npad is initialized
Diffstat (limited to 'src/core/memory')
| -rw-r--r-- | src/core/memory/cheat_engine.cpp | 2 |
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; |