mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-06-19 16:17:22 +00:00
Compare commits
5 Commits
2414548ccd
...
1b74a4c0a8
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1b74a4c0a8 | ||
![]() |
96f1048748 | ||
![]() |
067801cf4e | ||
![]() |
bd483507f1 | ||
![]() |
d19324f687 |
@ -57,16 +57,19 @@ 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 + "-" + guid;
|
id = guidIndex + "-" + guidString;
|
||||||
|
|
||||||
while (_gamepadsIds.Contains(id))
|
while (_gamepadsIds.Contains(id))
|
||||||
{
|
{
|
||||||
id = (++guidIndex) + "-" + guid;
|
id = (++guidIndex) + "-" + guidString;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user