mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -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:
@ -41,7 +41,7 @@ static double StringToDouble(const std::string& text)
|
||||
return result;
|
||||
}
|
||||
|
||||
void Init()
|
||||
void PopulateDevices()
|
||||
{
|
||||
// Search the Pipes directory for files that we can open in read-only,
|
||||
// non-blocking mode. The device name is the virtual name of the file.
|
||||
|
@ -22,7 +22,7 @@ namespace Pipes
|
||||
// SET {L, R} [0, 1]
|
||||
// SET {MAIN, C} [0, 1] [0, 1]
|
||||
|
||||
void Init();
|
||||
void PopulateDevices();
|
||||
|
||||
class PipeDevice : public Core::Device
|
||||
{
|
||||
|
Reference in New Issue
Block a user