mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-17 19:44:19 +01:00
PAD:SDL: Remove fallback code for unsupported SDL versions
This commit is contained in:
1 parent
5f168b1a1e
commit
aaed932a67
1 file changed
-6
@@ -129,11 +129,7 @@ JoystickInfo::~JoystickInfo()
|
||||
{
|
||||
if (m_controller != nullptr)
|
||||
{
|
||||
#if SDL_MINOR_VERSION >= 4
|
||||
// Version before 2.0.4 are bugged, JoystickClose crashes randomly
|
||||
// Note: GameControllerClose calls JoystickClose)
|
||||
SDL_GameControllerClose(m_controller);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,9 +194,7 @@ JoystickInfo::JoystickInfo(int id)
|
||||
"Please post the new generated mapping to (https://github.com/gabomdq/SDL_GameControllerDB) so it can be added to the database.",
|
||||
m_device_name.c_str(), guid);
|
||||
|
||||
#if SDL_MINOR_VERSION >= 4 // Version before 2.0.4 are bugged, JoystickClose crashes randomly
|
||||
SDL_JoystickClose(joy);
|
||||
#endif
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user