Ryujinx/src/Ryujinx.Ava
AxesP f11d663df7
Local Amiibo.json should be used if connection failed (#3681)
* Local Amiibo.json should be used if connection failed

Currently Ryujinx is not loading any Amiibo if connection fails, even if the Amiibo.json exists.
This fix will use the local file and show a Dialog if connection fails.

* using local Amiibo.json & fixed Amiibo.json date comparison

Using local Amiibo.json when connection fails and comparison without milliseconds for LastModified that comes from https://amiibo.ryujinx.org/ and the local one (The JSON file has milliseconds on it, those will cause an error when comparing the date from the header because the header one doesn't has milliseconds on it). Both changes made for Avalonia UI.

* Fixed date comparison

Same date comparison fix, but made for normal UI (Not for AvaloniaUI).
This error can be prevented if the file in https://amiibo.ryujinx.org/ did not have the date with milliseconds.

* Securely trying to get a list of Amiibo (For normal UI)

* Securely trying to get a list of Amiibo (Change for AvaloniaUI)

* Date comparison reverted

* Apply suggestions from code review

* Use fallback amiibo.json if remote file is not valid (Normal UI)

* Use fallback amiibo.json if remote file is not valid (Avalonia UI)

* Code styles corrected.

* Code styles corrected in AmiiboWindowViewModel.

* Readded Ryujinx.Common.Logging using.

* Fixed using order.

---------

Co-authored-by: Ac_K <Acoustik666@gmail.com>
2023-12-28 02:43:17 +01:00
..
Assets Improve indication of emulation being paused by the User (#5836) 2023-12-04 17:52:25 +01:00
Common editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
Input editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
Modules/Updater Ava UI: Refactor async usage (#5516) 2023-09-26 00:04:58 +02:00
UI Local Amiibo.json should be used if connection failed (#3681) 2023-12-28 02:43:17 +01:00
App.axaml Ava UI: Avalonia 11 & FluentAvalonia 2 Support (#4362) 2023-08-12 02:47:22 +02:00
App.axaml.cs Ava UI: Refactor async usage (#5516) 2023-09-26 00:04:58 +02:00
app.manifest Ava UI: Avalonia 11 & FluentAvalonia 2 Support (#4362) 2023-08-12 02:47:22 +02:00
AppHost.cs Ava UI: Fix temporary volume not being set after unmute (#5833) 2023-12-11 21:26:11 +01:00
Program.cs Overhaul of string formatting/parsing/sorting logic for TimeSpans, DateTimes, and file sizes (#4956) 2023-11-06 22:47:44 +01:00
Ryujinx.Ava.csproj Migrate to .NET 8 (#5887) 2023-11-15 17:41:31 +01:00
Ryujinx.ico Move solution and projects to src 2023-04-27 23:51:14 +02:00