From c63053adf27b227488c2283faa9f139318319021 Mon Sep 17 00:00:00 2001 From: yell0wsuit <5692900+yell0wsuit@users.noreply.github.com> Date: Thu, 18 Apr 2024 13:16:01 +0700 Subject: [PATCH] Remove temporary code --- src/Ryujinx/Modules/Updater/UpdateHelpers/CanUpdate.cs | 5 +++-- .../Modules/Updater/UpdateHelpers/GetCurrentVersion.cs | 4 ++-- src/Ryujinx/Modules/Updater/Updater.cs | 3 +-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Ryujinx/Modules/Updater/UpdateHelpers/CanUpdate.cs b/src/Ryujinx/Modules/Updater/UpdateHelpers/CanUpdate.cs index 9e2102c6c..07a22b324 100644 --- a/src/Ryujinx/Modules/Updater/UpdateHelpers/CanUpdate.cs +++ b/src/Ryujinx/Modules/Updater/UpdateHelpers/CanUpdate.cs @@ -1,5 +1,6 @@ using Avalonia.Threading; using FluentAvalonia.UI.Controls; +using Ryujinx.Ava; using Ryujinx.Ava.Common.Locale; using Ryujinx.Ava.UI.Helpers; using Ryujinx.Common; @@ -28,7 +29,7 @@ namespace Ryujinx.Modules return false; } - /*if (Program.Version.Contains("dirty") || !ReleaseInformation.IsValid) + if (Program.Version.Contains("dirty") || !ReleaseInformation.IsValid) { if (showWarnings) { @@ -40,7 +41,7 @@ namespace Ryujinx.Modules } return false; - }*/ // Temporary commented out, will revert back + } return true; #else diff --git a/src/Ryujinx/Modules/Updater/UpdateHelpers/GetCurrentVersion.cs b/src/Ryujinx/Modules/Updater/UpdateHelpers/GetCurrentVersion.cs index 485bc0dda..aa929a45d 100644 --- a/src/Ryujinx/Modules/Updater/UpdateHelpers/GetCurrentVersion.cs +++ b/src/Ryujinx/Modules/Updater/UpdateHelpers/GetCurrentVersion.cs @@ -1,3 +1,4 @@ +using Ryujinx.Ava; using Ryujinx.Ava.Common.Locale; using Ryujinx.Ava.UI.Helpers; using Ryujinx.Common.Logging; @@ -15,8 +16,7 @@ namespace Ryujinx.Modules { try { - //return Version.Parse(Program.Version); - return Version.Parse("1.1.0"); // Temporary code, will revert back + return Version.Parse(Program.Version); } catch { diff --git a/src/Ryujinx/Modules/Updater/Updater.cs b/src/Ryujinx/Modules/Updater/Updater.cs index cbe6e0aba..b9263b221 100644 --- a/src/Ryujinx/Modules/Updater/Updater.cs +++ b/src/Ryujinx/Modules/Updater/Updater.cs @@ -44,8 +44,7 @@ namespace Ryujinx.Modules return; } - //string buildInfoUrl = $"{GitHubApiUrl}/repos/{ReleaseInformation.ReleaseChannelOwner}/{ReleaseInformation.ReleaseChannelRepo}/releases/latest"; - string buildInfoUrl = $"{GitHubApiUrl}/repos/Ryujinx/release-channel-master/releases/latest"; // Temporary code, will revert back + string buildInfoUrl = $"{GitHubApiUrl}/repos/{ReleaseInformation.ReleaseChannelOwner}/{ReleaseInformation.ReleaseChannelRepo}/releases/latest"; if (!await TryUpdateVersionInfo(buildInfoUrl, showVersionUpToDate)) { return;