Compare commits

..

7 Commits

Author SHA1 Message Date
Evan Husted
0f00051f2e Merge branch 'master' into master 2025-03-11 01:54:22 -05:00
Ben. S.
f887c4b64b Merge branch 'master' into master 2025-03-08 19:37:39 +01:00
Ben. S.
765800e3eb Merge branch 'Ryubing:master' into master 2025-03-06 19:16:28 +01:00
Ben. S.
96f1048748 Update SDL2GamepadDriver.cs
Move the section after the check for empty guid (dumb me)
2025-03-05 14:41:52 +01:00
Ben. S.
067801cf4e Merge branch 'master' into master 2025-03-05 10:47:47 +01:00
Evan Husted
bd483507f1 Merge branch 'master' into master 2025-03-04 15:07:28 -06:00
Benoit S.
d19324f687 sdl2 guid, remove the 2 CRC bytes when creating guid 2025-03-04 21:58:47 +01:00
2 changed files with 11 additions and 8 deletions

View File

@@ -57,16 +57,19 @@ 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 + "-" + guid;
id = guidIndex + "-" + guidString;
while (_gamepadsIds.Contains(id))
{
id = (++guidIndex) + "-" + guid;
id = (++guidIndex) + "-" + guidString;
}
}

View File

@@ -1664,7 +1664,7 @@
"pl_PL": "Rozszerzenie pliku: {0}",
"pt_BR": "Extensão: {0}",
"ru_RU": "Расширение файла: {0}",
"sv_SE": "Filändelse: {0}",
"sv_SE": "Filänd: {0}",
"th_TH": "นามสกุลไฟล์: {0}",
"tr_TR": "Dosya Uzantısı: {0}",
"uk_UA": "Розширення файлу: {0}",
@@ -1789,7 +1789,7 @@
"pl_PL": "Rozszerzenie pliku",
"pt_BR": "Extensão",
"ru_RU": "Расширение файла",
"sv_SE": "Filändelse",
"sv_SE": "Filänd",
"th_TH": "นามสกุลไฟล์",
"tr_TR": "Dosya Uzantısı",
"uk_UA": "Розширення файлу",
@@ -4014,7 +4014,7 @@
"pl_PL": "",
"pt_BR": "Carregar Automaticamente Pasta de DLC e Atualizações",
"ru_RU": "Автозагрузка папки с DLC/Обновлениями",
"sv_SE": "Läs automatiskt in DLC/speluppdateringar",
"sv_SE": "Läs automatisk in DLC/speluppdateringar",
"th_TH": "โหลดไดเรกทอรี DLC/ไฟล์อัปเดต อัตโนมัติ",
"tr_TR": "",
"uk_UA": "Автозавантаження теки DLC/Оновлень",
@@ -7264,7 +7264,7 @@
"pl_PL": "Przyciski",
"pt_BR": "Botões",
"ru_RU": "Кнопки",
"sv_SE": "Handlingsknappar",
"sv_SE": "Knappar",
"th_TH": "ปุ่มกด",
"tr_TR": "Tuşlar",
"uk_UA": "Кнопки",
@@ -14914,7 +14914,7 @@
"pl_PL": "Wielowątkowość Backendu Graficznego:",
"pt_BR": "Multi Enfileiramento do Renderizador Gráfico:",
"ru_RU": "Многопоточность графического бэкенда:",
"sv_SE": "Multitrådning för grafikbakände:",
"sv_SE": "Multithreading för grafikbakände:",
"th_TH": "มัลติเธรด กราฟิกเบื้องหลัง:",
"tr_TR": "Grafik Backend Multithreading:",
"uk_UA": "Багатопотоковість графічного сервера:",
@@ -18714,7 +18714,7 @@
"pl_PL": "",
"pt_BR": "Não Reduzido",
"ru_RU": "Не обрезан",
"sv_SE": "Orörd",
"sv_SE": "Inte optimerad",
"th_TH": "",
"tr_TR": "",
"uk_UA": "Необрізані",