mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-02-17 01:00:30 -05: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:
@@ -85,6 +85,12 @@ void Init()
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void PopulateDevices()
|
||||
{
|
||||
if (!hXInput)
|
||||
return;
|
||||
|
||||
XINPUT_CAPABILITIES caps;
|
||||
for (int i = 0; i != 4; ++i)
|
||||
|
||||
Reference in New Issue
Block a user