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.
This commit is contained in:
parent
7aae59a766
commit
be76dc153b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue