From be76dc153b944d30c8ed648adcb3b4c4df1799e5 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Thu, 1 Aug 2013 07:16:51 -0500 Subject: [PATCH] Re-add the HandleWiimoteDisconnect calls to the RealWiimote::Shutdown routine. This is needed to actually disconnect real wiimotes and delete the corresponding wiimote objects when the app exits. --- Source/Core/Core/Src/HW/WiimoteReal/WiimoteReal.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Core/Core/Src/HW/WiimoteReal/WiimoteReal.cpp b/Source/Core/Core/Src/HW/WiimoteReal/WiimoteReal.cpp index d30e1b37c9..d2e7e2f57a 100644 --- a/Source/Core/Core/Src/HW/WiimoteReal/WiimoteReal.cpp +++ b/Source/Core/Core/Src/HW/WiimoteReal/WiimoteReal.cpp @@ -591,6 +591,9 @@ void Shutdown(void) NOTICE_LOG(WIIMOTE, "WiimoteReal::Shutdown"); g_real_wiimotes_initialized = false; + + for (unsigned int i = 0; i < MAX_BBMOTES; ++i) + HandleWiimoteDisconnect(i); } void Resume()