PAD:SDL: Remove fallback code for unsupported SDL versions

This commit is contained in:
TellowKrinkle 2021-12-02 03:03:00 -06:00 committed by tellowkrinkle
parent 5f168b1a1e
commit aaed932a67
1 changed files with 0 additions and 6 deletions

View File

@ -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;
}