From 6bd9488e0a6a201b8333c7343b6d5b29c0ed844c Mon Sep 17 00:00:00 2001 From: TryTwo Date: Thu, 7 Dec 2023 11:54:50 -0700 Subject: [PATCH] WiimoteDevice. bugfix. Remove signal spam while starting a game. Emulation state changed signals also update the wiimote connection. The signal here is only needed for wiimote connects/disconnects. Can fix erroneous debugger behavior during booting, as dolphin will sometimes incorrectly report the state as paused, which leads the debugger widgets to run when they shouldn't. --- Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp b/Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp index 5a59315606..18d24c9feb 100644 --- a/Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp +++ b/Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp @@ -145,7 +145,8 @@ void WiimoteDevice::SetBasebandState(BasebandState new_state) m_baseband_state = new_state; // Update wiimote connection checkboxes in UI. - Host_UpdateDisasmDialog(); + if (IsConnected() != was_connected) + Host_UpdateDisasmDialog(); if (!IsSourceValid()) return;