mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 22:34:54 +00:00
Possible crashfix for OSX.
This commit is contained in:
parent
ef90b15f3e
commit
6b2804e296
2 changed files with 3 additions and 2 deletions
|
@ -195,6 +195,8 @@ bool Wiimote::Connect()
|
||||||
ERROR_LOG(WIIMOTE, "Unable to open L2CAP channels "
|
ERROR_LOG(WIIMOTE, "Unable to open L2CAP channels "
|
||||||
"for wiimote %i", index + 1);
|
"for wiimote %i", index + 1);
|
||||||
Disconnect();
|
Disconnect();
|
||||||
|
|
||||||
|
[cbt release];
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,7 +211,6 @@ bool Wiimote::Connect()
|
||||||
m_connected = true;
|
m_connected = true;
|
||||||
|
|
||||||
[cbt release];
|
[cbt release];
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ WiimoteScanner g_wiimote_scanner;
|
||||||
Wiimote::Wiimote()
|
Wiimote::Wiimote()
|
||||||
: index()
|
: index()
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
, inputlen(0)
|
, btd(), ichan(), cchan(), inputlen(), m_connected()
|
||||||
#elif defined(__linux__) && HAVE_BLUEZ
|
#elif defined(__linux__) && HAVE_BLUEZ
|
||||||
, cmd_sock(-1), int_sock(-1)
|
, cmd_sock(-1), int_sock(-1)
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
|
|
Loading…
Add table
Reference in a new issue