mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-08-30 07:25:05 +00:00
Update SDL2GamepadDriver.cs
Move the section after the check for empty guid (dumb me)
This commit is contained in:
parent
067801cf4e
commit
96f1048748
1 changed files with 3 additions and 3 deletions
|
|
@ -50,9 +50,6 @@ namespace Ryujinx.Input.SDL2
|
||||||
{
|
{
|
||||||
Guid guid = SDL_JoystickGetDeviceGUID(joystickIndex);
|
Guid guid = SDL_JoystickGetDeviceGUID(joystickIndex);
|
||||||
|
|
||||||
// Remove the first 4 char of the guid (CRC part) to make it stable
|
|
||||||
string guidString = "0000" + guid.ToString().Substring(4);
|
|
||||||
|
|
||||||
// Add a unique identifier to the start of the GUID in case of duplicates.
|
// Add a unique identifier to the start of the GUID in case of duplicates.
|
||||||
|
|
||||||
if (guid == Guid.Empty)
|
if (guid == Guid.Empty)
|
||||||
|
|
@ -60,6 +57,9 @@ 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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue