From a015fe753de37285d2e07957ada23b0096faadb6 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sun, 9 Oct 2022 13:04:03 +0100 Subject: [PATCH] Only write npad controllerInfo entry on the HID thread if it is valid --- app/src/main/cpp/skyline/input/npad_device.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/input/npad_device.cpp b/app/src/main/cpp/skyline/input/npad_device.cpp index bd02efbe..a9a8e447 100644 --- a/app/src/main/cpp/skyline/input/npad_device.cpp +++ b/app/src/main/cpp/skyline/input/npad_device.cpp @@ -245,7 +245,8 @@ namespace skyline::input { if (!connectionState.connected) return; - WriteNextEntry(*controllerInfo, controllerState); + if (controllerInfo) + WriteNextEntry(*controllerInfo, controllerState); WriteNextEntry(section.defaultController, defaultState); globalTimestamp++;