mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
Patch by mwessel that fixes real wiimotes on OSX 10.8
This commit is contained in:
parent
5170d65711
commit
a024d04583
1 changed files with 7 additions and 1 deletions
|
@ -185,6 +185,11 @@ bool Wiimote::Connect()
|
||||||
RealDisconnect();
|
RealDisconnect();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// As of 10.8 these need explicit retaining or writing to the wiimote has a very high
|
||||||
|
// chance of crashing and burning.
|
||||||
|
[ichan retain];
|
||||||
|
[cchan retain];
|
||||||
|
|
||||||
NOTICE_LOG(WIIMOTE, "Connected to wiimote %i at %s",
|
NOTICE_LOG(WIIMOTE, "Connected to wiimote %i at %s",
|
||||||
index + 1, [[btd getAddressString] UTF8String]);
|
index + 1, [[btd getAddressString] UTF8String]);
|
||||||
|
@ -215,7 +220,8 @@ void Wiimote::RealDisconnect()
|
||||||
m_wiimote_thread.join();
|
m_wiimote_thread.join();
|
||||||
|
|
||||||
[btd closeConnection];
|
[btd closeConnection];
|
||||||
|
[ichan release];
|
||||||
|
[cchan release];
|
||||||
btd = NULL;
|
btd = NULL;
|
||||||
cchan = NULL;
|
cchan = NULL;
|
||||||
ichan = NULL;
|
ichan = NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue