mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
ControllerInterface: replace Reinitialize with RefreshDevices
The SDL backend crashes when you close a joystick after SDL_Quit has been called. Some backends don't need to be shutdown and re-initialized everytime, we can just ask to enumerate devices again.
This commit is contained in:
@ -894,7 +894,7 @@ void InputConfigDialog::RefreshDevices(wxCommandEvent&)
|
||||
bool was_unpaused = Core::PauseAndLock(true);
|
||||
|
||||
// refresh devices
|
||||
g_controller_interface.Reinitialize();
|
||||
g_controller_interface.RefreshDevices();
|
||||
|
||||
// update all control references
|
||||
UpdateControlReferences();
|
||||
|
Reference in New Issue
Block a user