mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
SDLJoystick: store name on creation
Otherwise, Dolphin will crash when the joystick is removed.
This commit is contained in:
@ -151,7 +151,7 @@ public:
|
||||
|
||||
private:
|
||||
SDL_Joystick* const m_joystick;
|
||||
const int m_sdl_index;
|
||||
std::string m_name;
|
||||
|
||||
#ifdef USE_SDL_HAPTIC
|
||||
SDL_Haptic* m_haptic;
|
||||
|
Reference in New Issue
Block a user