check for studio arg

This commit is contained in:
bluepilledgreat 2023-10-04 11:14:18 +01:00
parent e70dc6df49
commit bb5b46adf5

View File

@ -30,6 +30,7 @@ namespace Bloxstrap
public static bool IsNoLaunch { get; private set; } = false; public static bool IsNoLaunch { get; private set; } = false;
public static bool IsUpgrade { get; private set; } = false; public static bool IsUpgrade { get; private set; } = false;
public static bool IsMenuLaunch { 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 string[] LaunchArgs { get; private set; } = null!;
public static BuildMetadataAttribute BuildMetadata = Assembly.GetExecutingAssembly().GetCustomAttribute<BuildMetadataAttribute>()!; public static BuildMetadataAttribute BuildMetadata = Assembly.GetExecutingAssembly().GetCustomAttribute<BuildMetadataAttribute>()!;
@ -154,6 +155,12 @@ namespace Bloxstrap
Logger.WriteLine(LOG_IDENT, "Bloxstrap started with IsUpgrade flag"); Logger.WriteLine(LOG_IDENT, "Bloxstrap started with IsUpgrade flag");
IsUpgrade = true; IsUpgrade = true;
} }
if (Array.IndexOf(LaunchArgs, "-studio") != -1)
{
Logger.WriteLine(LOG_IDENT, "Bloxstrap started with IsStudioLaunch flag");
IsStudioLaunch = true;
}
} }
using (var checker = new InstallChecker()) using (var checker = new InstallChecker())