Compare commits

..

No commits in common. "5bf656cb250d0744ce7062b2bce730986ac98b76" and "c9e120f8f244cf0617b2efef1766ea1a9ce9ec30" have entirely different histories.

View file

@ -57,19 +57,16 @@ namespace Ryujinx.Input.SDL2
return null; return null;
} }
// Remove the first 4 char of the guid (CRC part) to make it stable
string guidString = "0000" + guid.ToString().Substring(4);
string id; string id;
lock (_lock) lock (_lock)
{ {
int guidIndex = 0; int guidIndex = 0;
id = guidIndex + "-" + guidString; id = guidIndex + "-" + guid;
while (_gamepadsIds.Contains(id)) while (_gamepadsIds.Contains(id))
{ {
id = (++guidIndex) + "-" + guidString; id = (++guidIndex) + "-" + guid;
} }
} }