mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Removed parts of the buggy controller drivers crash prevention as it caused unforeseen issues
This commit is contained in:
parent
5e64694e3c
commit
cfd4290e3f
|
@ -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<InputConfig>(joyID, SDL_GameControllerName(mControllers[joyID]), guid);
|
||||
|
||||
|
|
Loading…
Reference in a new issue