From 9954b5db61c13919e5827e86c57e52eb670601cb Mon Sep 17 00:00:00 2001 From: rjindael Date: Sun, 10 Sep 2023 02:38:23 -0700 Subject: [PATCH] fix: use new Web.IsConnected determination --- Kiseki.Launcher.Windows/Program.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Kiseki.Launcher.Windows/Program.cs b/Kiseki.Launcher.Windows/Program.cs index 35e92c3..0c148e3 100644 --- a/Kiseki.Launcher.Windows/Program.cs +++ b/Kiseki.Launcher.Windows/Program.cs @@ -19,8 +19,7 @@ internal static class Program Paths.Initialize(Path.Combine(Paths.LocalAppData, Constants.PROJECT_NAME)); } - bool isConnected = Web.Initialize(); - if (!isConnected && Web.IsInMaintenance) + if (!Web.IsConnected && Web.IsInMaintenance) { // Try licensing this launcher and attempt to connect again if (!Bootstrapper.License()) @@ -28,10 +27,10 @@ internal static class Program return; } - isConnected = Web.Initialize(); + Web.Initialize(); } - if (!isConnected) + if (!Web.IsConnected) { if (Web.IsInMaintenance) { @@ -54,7 +53,7 @@ internal static class Program // Nothing for us to do :P Process.Start(new ProcessStartInfo() { - FileName = Web.Url("/games"), + FileName = Web.FormatUrl("/games"), UseShellExecute = true });