mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-11-26 02:42:22 -05:00
Compare commits
8 Commits
master
...
1d207bf933
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d207bf933 | ||
|
|
0f00051f2e | ||
|
|
f887c4b64b | ||
|
|
765800e3eb | ||
|
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user