New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix DualShockUDP not adding/removing devices correctly #9418
Conversation
Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.cpp
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
I thought about enforcing it but that's not necessary given that two devices can have the exact same name under the same source, they will be distinguished by ID. |
This comment has been minimized.
This comment has been minimized.
Well of course the first thing I tried to do was adding two devices with the same name to break it :). |
|
@Filoppi - sorry, I had just woken up when I looked at this initially and was thinking of the path not the actual device name. You're right, there's no reason we can't allow the same name. This LGTM code wise (I'll test it later) |
|
Commits still need to be squashed. |
Fixed |
-If adding 2 devices with the same name, they their unique id wouldn't be increased, causing a conflict. -Removing a device wouldn't actually remove it from the internal devices list because the list of devices had already been updated when going through it. -It was possible to remove devices belonging to other sources by adding a device with the same name and then removing it.
|
Fixed lint code check |
-If adding 2 devices with the same name, their unique identifier wouldn't be increased, causing a conflict.
-Removing a device wouldn't actually remove it from the internal devices list because the local list of devices had already been updated when iterating it.
-It was possible to remove devices belonging to other input sources by adding a device with the same name and then removing it.