VERY experimental Nintendo Switch 2 emulator
C++
hid.cpp: Fixed crash when updating pad data while null
archshift366ae1b351e7
diff --git a/src/core/hle/service/hid.cpp b/src/core/hle/service/hid.cppindex b6ec1b8ff2..ef38a5603e 100644--- a/src/core/hle/service/hid.cpp+++ b/src/core/hle/service/hid.cpp@@ -78,6 +78,10 @@ void PadButtonRelease(PadState pad_state) {void PadUpdateComplete() {PadData* pad_data = GetPadData();+ if (pad_data == nullptr) {+ return;+ }+// Update PadData structpad_data->current_state.hex = next_state.hex;pad_data->index = next_index;