From fd0ac567a50cf7cfa731ef1c8fb6531d56f73b01 Mon Sep 17 00:00:00 2001 From: Narr the Reg Date: Thu, 14 Dec 2023 20:04:38 -0600 Subject: core: Make sure npad is initialized --- src/core/hid/input_interpreter.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/hid/input_interpreter.cpp') diff --git a/src/core/hid/input_interpreter.cpp b/src/core/hid/input_interpreter.cpp index a6bdd28f2a..072f38a68e 100644 --- a/src/core/hid/input_interpreter.cpp +++ b/src/core/hid/input_interpreter.cpp @@ -20,6 +20,9 @@ InputInterpreter::InputInterpreter(Core::System& system) InputInterpreter::~InputInterpreter() = default; void InputInterpreter::PollInput() { + if (npad == nullptr) { + return; + } const auto button_state = npad->GetAndResetPressState(); previous_index = current_index; -- cgit v1.2.3