From cfd4290e3f74edf9e7ee0a56f8b7631123ba44ae Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 15 Jul 2023 23:59:52 +0200 Subject: [PATCH] Removed parts of the buggy controller drivers crash prevention as it caused unforeseen issues --- es-core/src/InputManager.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/es-core/src/InputManager.cpp b/es-core/src/InputManager.cpp index a3bc356bc..1fbda5b75 100644 --- a/es-core/src/InputManager.cpp +++ b/es-core/src/InputManager.cpp @@ -630,15 +630,6 @@ void InputManager::addControllerByDeviceIndex(Window* window, int deviceIndex) SDL_JoystickGetGUIDString(SDL_JoystickGetGUID(joy), &guid[0], 64); guid.erase(guid.find('\0')); - for (auto& inputConfig : mInputConfigs) { - // This can occur if there are SDL bugs or controller driver bugs. - if (inputConfig.second->getDeviceGUIDString().substr(0, 32) == guid.substr(0, 32)) { - LOG(LogWarning) << "Attempted to add an existing controller entry with GUID \"" << guid - << "\", buggy drivers?"; - return; - } - } - mInputConfigs[joyID] = std::make_unique(joyID, SDL_GameControllerName(mControllers[joyID]), guid);