mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-05-16 22:37:42 +02:00
Compare commits
1 commit
707d0326dc
...
f6b632dd66
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f6b632dd66 |
1 changed files with 2 additions and 5 deletions
|
@ -57,19 +57,16 @@ namespace Ryujinx.Input.SDL2
|
|||
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;
|
||||
|
||||
lock (_lock)
|
||||
{
|
||||
int guidIndex = 0;
|
||||
id = guidIndex + "-" + guidString;
|
||||
id = guidIndex + "-" + guid;
|
||||
|
||||
while (_gamepadsIds.Contains(id))
|
||||
{
|
||||
id = (++guidIndex) + "-" + guidString;
|
||||
id = (++guidIndex) + "-" + guid;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue