mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-13 22:17:59 -05:00
core: Make sure npad is initialized
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user