From d665bcf853fdf4e8a35d7aa6176a3c60937a3632 Mon Sep 17 00:00:00 2001 From: DEATHB4DEFEAT Date: Thu, 19 Dec 2024 22:09:00 -0800 Subject: [PATCH] fix version checking and change data URL --- SS14.Launcher/ConfigConstants.cs | 11 +++++++---- SS14.Launcher/ViewModels/MainWindowViewModel.cs | 2 -- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/SS14.Launcher/ConfigConstants.cs b/SS14.Launcher/ConfigConstants.cs index 3d2dc8e..1010f48 100644 --- a/SS14.Launcher/ConfigConstants.cs +++ b/SS14.Launcher/ConfigConstants.cs @@ -5,8 +5,12 @@ namespace SS14.Launcher; public static class ConfigConstants { - public const string CurrentLauncherVersion = "51"; - public static readonly bool DoVersionCheck = true; + public const string CurrentLauncherVersion = "1.0.2"; + #if RELEASE + public const bool DoVersionCheck = true; + #else + public const bool DoVersionCheck = false; + #endif // Refresh login tokens if they're within of expiry. public static readonly TimeSpan TokenRefreshThreshold = TimeSpan.FromDays(15); @@ -50,8 +54,7 @@ public static class ConfigConstants ]); private static readonly UrlFallbackSet LauncherDataBaseUrl = new([ - "https://launcher-data.cdn.spacestation14.com/", - "https://launcher-data.fallback.cdn.spacestation14.com/", + "http://assets.simplestation.org/launcher/", ]); public static readonly UrlFallbackSet RobustBuildsManifest = RobustBuildsBaseUrl + "manifest.json"; diff --git a/SS14.Launcher/ViewModels/MainWindowViewModel.cs b/SS14.Launcher/ViewModels/MainWindowViewModel.cs index 82f9cb6..091d09c 100644 --- a/SS14.Launcher/ViewModels/MainWindowViewModel.cs +++ b/SS14.Launcher/ViewModels/MainWindowViewModel.cs @@ -172,9 +172,7 @@ private async Task CheckLauncherUpdate() { // await Task.Delay(1000); if (!ConfigConstants.DoVersionCheck) - { return; - } await _infoManager.LoadTask; if (_infoManager.Model == null)