Fix Linux launch args & updater switching build type

This commit is contained in:
Natsumi
2025-02-25 00:48:49 +13:00
parent d5e789ef0e
commit ea07194b1c
4 changed files with 37 additions and 24 deletions
+2 -5
View File
@@ -25,14 +25,11 @@ namespace VRCX
private const string SubProcessTypeArgument = "--type";
public static VrcxLaunchArguments LaunchArguments = new();
public static void ArgsCheck()
public static void ArgsCheck(string[] args)
{
var args = Environment.GetCommandLineArgs();
Debug.Assert(Program.LaunchDebug = true);
var currentProcessArgs = ParseArgs(args);
LaunchArguments = currentProcessArgs;
LaunchArguments = ParseArgs(args);
if (LaunchArguments.IsDebug)
Program.LaunchDebug = true;