diff options
author | 2435043xia <363032601@qq.com> | 2023-05-12 01:10:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-11 19:10:24 +0200 |
commit | 42f7f986661ef7ba65996e56d8448cb8f8985515 (patch) | |
tree | be2b23db927a187b65e002f9f53ffff09d8fd94b | |
parent | 95bad6995c110a662c8059e4f8035426303c0840 (diff) |
Fix the issue of unequal check for amiibo file date due to the lack o… (#4832)1.1.781
* Fix the issue of unequal check for amiibo file date due to the lack of sub-second units in the header, causing slow opening of the amiibo interface.
* Supplement the unrepaired.
-rw-r--r-- | src/Ryujinx.Ava/UI/ViewModels/AmiiboWindowViewModel.cs | 2 | ||||
-rw-r--r-- | src/Ryujinx/Ui/Windows/AmiiboWindow.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Ryujinx.Ava/UI/ViewModels/AmiiboWindowViewModel.cs b/src/Ryujinx.Ava/UI/ViewModels/AmiiboWindowViewModel.cs index bb92798f..ead1a144 100644 --- a/src/Ryujinx.Ava/UI/ViewModels/AmiiboWindowViewModel.cs +++ b/src/Ryujinx.Ava/UI/ViewModels/AmiiboWindowViewModel.cs @@ -370,7 +370,7 @@ namespace Ryujinx.Ava.UI.ViewModels if (response.IsSuccessStatusCode) { - return response.Content.Headers.LastModified != oldLastModified; + return response.Content.Headers.LastModified != new DateTimeOffset(oldLastModified.Ticks - (oldLastModified.Ticks % TimeSpan.TicksPerSecond), TimeSpan.Zero); } return false; diff --git a/src/Ryujinx/Ui/Windows/AmiiboWindow.cs b/src/Ryujinx/Ui/Windows/AmiiboWindow.cs index 11a566d8..9cfb2942 100644 --- a/src/Ryujinx/Ui/Windows/AmiiboWindow.cs +++ b/src/Ryujinx/Ui/Windows/AmiiboWindow.cs @@ -180,7 +180,7 @@ namespace Ryujinx.Ui.Windows if (response.IsSuccessStatusCode) { - return response.Content.Headers.LastModified != oldLastModified; + return response.Content.Headers.LastModified != new DateTimeOffset(oldLastModified.Ticks - (oldLastModified.Ticks % TimeSpan.TicksPerSecond), TimeSpan.Zero); } return false; |