mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
check for studio arg
This commit is contained in:
parent
e70dc6df49
commit
bb5b46adf5
@ -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<BuildMetadataAttribute>()!;
|
||||
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user