From c37bca75b656a6ecded15f7a6ab55856ff4f382a Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Wed, 7 Jul 2010 02:19:16 +0000 Subject: Make the refresh button on the Wiimote New plugin add new wiimotes in linux, instead of disconnecting and reconnecting those that were already connected. This makes it possible to connect new wiimotes during a game by openning the wiimote configuration dialog and refreshing. You still need to tell dolphin that a new wiimote is connected using Ctrl+F5-F8 or the corresponding menu entries. Also fixed a segmentation fault caused by the UDP Wiimote stuff when a thread was not properly ended. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5847 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/InputCommon/Src/UDPWiimote.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/Core') diff --git a/Source/Core/InputCommon/Src/UDPWiimote.cpp b/Source/Core/InputCommon/Src/UDPWiimote.cpp index d48a58fdcb..7a5f586cfa 100644 --- a/Source/Core/InputCommon/Src/UDPWiimote.cpp +++ b/Source/Core/InputCommon/Src/UDPWiimote.cpp @@ -198,6 +198,7 @@ void UDPWiimote::mainThread() UDPWiimote::~UDPWiimote() { d->exit=true; + d->thread->WaitForDeath(); d->termLock.Enter(); d->termLock.Leave(); for (std::list::iterator i=d->sockfds.begin(); i!=d->sockfds.end(); i++) -- cgit v1.2.3