From aba2dbb192a5e66d17d6b6c4939e53314e3a693f Mon Sep 17 00:00:00 2001 From: bluepilledgreat <97983689+bluepilledgreat@users.noreply.github.com> Date: Tue, 11 Mar 2025 22:59:20 +0000 Subject: [PATCH] add the force flag --- Bloxstrap/Bootstrapper.cs | 2 +- Bloxstrap/LaunchSettings.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index 8d06814..66a2e50 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -60,7 +60,7 @@ namespace Bloxstrap private long _totalDownloadedBytes = 0; private bool _packageExtractionSuccess = true; - private bool _mustUpgrade => String.IsNullOrEmpty(AppData.State.VersionGuid) || !File.Exists(AppData.ExecutablePath); + private bool _mustUpgrade => App.LaunchSettings.ForceFlag.Active || String.IsNullOrEmpty(AppData.State.VersionGuid) || !File.Exists(AppData.ExecutablePath); private bool _noConnection = false; private AsyncMutex? _mutex; diff --git a/Bloxstrap/LaunchSettings.cs b/Bloxstrap/LaunchSettings.cs index b3ce012..5b6e31f 100644 --- a/Bloxstrap/LaunchSettings.cs +++ b/Bloxstrap/LaunchSettings.cs @@ -36,6 +36,8 @@ namespace Bloxstrap public LaunchFlag ChannelFlag { get; } = new("channel"); + public LaunchFlag ForceFlag { get; } = new("force"); + #if DEBUG public bool BypassUpdateCheck => true; #else