mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-01 10:31:31 +02:00
This fixes some of the crash-on-stop when your joypad is plugged in.
The problem is that there is no cheap method to do communications between two DLLs that employ the same device. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4992 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
8bb96156a2
commit
6d309751d5
@ -318,12 +318,17 @@ void Shutdown()
|
|||||||
INFO_LOG(WIIMOTE, "ShutDown");
|
INFO_LOG(WIIMOTE, "ShutDown");
|
||||||
|
|
||||||
ResetVariables();
|
ResetVariables();
|
||||||
|
// We can't close it here or it might crash
|
||||||
|
// because the joystick could have been closed already in GCPad
|
||||||
|
// But there is no easy way to know the situation of another DLL
|
||||||
|
// So we just skip the close procedure here
|
||||||
|
/*
|
||||||
// Close joypads
|
// Close joypads
|
||||||
Close_Devices();
|
Close_Devices();
|
||||||
// Finally close SDL
|
// Finally close SDL
|
||||||
if (SDL_WasInit(0))
|
if (SDL_WasInit(0))
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
|
*/
|
||||||
g_SearchDeviceDone = false;
|
g_SearchDeviceDone = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user