Compare commits

...

9 Commits

Author SHA1 Message Date
Ben. S.
098153e50a Merge 0f00051f2e into 05b4bd8c61 2025-03-12 17:31:09 -03:00
Evan Husted
05b4bd8c61 UI: Use a new repo for amiibo stuff specifically 2025-03-12 14:17:14 -05:00
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 7 additions and 4 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

@@ -432,7 +432,7 @@ namespace Ryujinx.Ava.UI.ViewModels
{
try
{
HttpResponseMessage response = await _httpClient.SendAsync(new HttpRequestMessage(HttpMethod.Head, "https://raw.githubusercontent.com/Ryubing/Ryujinx/refs/heads/master/assets/amiibo/Amiibo.json"));
HttpResponseMessage response = await _httpClient.SendAsync(new HttpRequestMessage(HttpMethod.Head, "https://raw.githubusercontent.com/Ryubing/Nfc/refs/heads/main/tags.json"));
if (response.IsSuccessStatusCode)
{
@@ -451,7 +451,7 @@ namespace Ryujinx.Ava.UI.ViewModels
{
try
{
HttpResponseMessage response = await _httpClient.GetAsync($"https://raw.githubusercontent.com/Ryubing/Ryujinx/refs/heads/master/assets/amiibo/Amiibo.json");
HttpResponseMessage response = await _httpClient.GetAsync("https://raw.githubusercontent.com/Ryubing/Nfc/refs/heads/main/tags.json");
if (response.IsSuccessStatusCode)
{