Don't print a bogus number of bluetooth devices found.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5559 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang 2010-05-31 16:54:21 +00:00
parent 95edef2e0d
commit 66c480c86b

View File

@ -224,8 +224,7 @@ void detectWiimote(int timeout) {
*/
int wiiuse_find(struct wiimote_t** wm, int max_wiimotes, int timeout) {
int found_devices;
int found_wiimotes;
int found_wiimotes = 0;
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
@ -246,9 +245,9 @@ int wiiuse_find(struct wiimote_t** wm, int max_wiimotes, int timeout) {
CFRunLoopRun();
found_wiimotes = 0;
#if 0 /* XXX */
WIIUSE_INFO("Found %i bluetooth device(s).", found_devices);
#endif
WIIMOTE_ENABLE_STATE(wm[found_wiimotes], WIIMOTE_STATE_DEV_FOUND);