From bb5b46adf5718f8d0e7111c94c566c7c29c3612a Mon Sep 17 00:00:00 2001 From: bluepilledgreat <97983689+bluepilledgreat@users.noreply.github.com> Date: Wed, 4 Oct 2023 11:14:18 +0100 Subject: [PATCH] check for studio arg --- Bloxstrap/App.xaml.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Bloxstrap/App.xaml.cs b/Bloxstrap/App.xaml.cs index 12b62fa..77e832b 100644 --- a/Bloxstrap/App.xaml.cs +++ b/Bloxstrap/App.xaml.cs @@ -30,6 +30,7 @@ namespace Bloxstrap public static bool IsNoLaunch { get; private set; } = false; public static bool IsUpgrade { get; private set; } = false; public static bool IsMenuLaunch { get; private set; } = false; + public static bool IsStudioLaunch { get; private set; } = false; public static string[] LaunchArgs { get; private set; } = null!; public static BuildMetadataAttribute BuildMetadata = Assembly.GetExecutingAssembly().GetCustomAttribute()!; @@ -154,6 +155,12 @@ namespace Bloxstrap Logger.WriteLine(LOG_IDENT, "Bloxstrap started with IsUpgrade flag"); IsUpgrade = true; } + + if (Array.IndexOf(LaunchArgs, "-studio") != -1) + { + Logger.WriteLine(LOG_IDENT, "Bloxstrap started with IsStudioLaunch flag"); + IsStudioLaunch = true; + } } using (var checker = new InstallChecker())