Browse Source

Merge pull request #33 from ionite34/launcher-use-args

pull/5/head
Ionite 1 year ago committed by GitHub
parent
commit
b17a18fafc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      StabilityMatrix/Models/Packages/A3WebUI.cs
  2. 3
      StabilityMatrix/ViewModels/LaunchViewModel.cs

2
StabilityMatrix/Models/Packages/A3WebUI.cs

@ -178,7 +178,7 @@ public class A3WebUI : BasePackage
OnConsoleOutput($"Venv process exited with code {i}");
}
var args = $"\"{Path.Combine(installedPackagePath, LaunchCommand)}{arguments}\"";
var args = $"\"{Path.Combine(installedPackagePath, LaunchCommand)}\" {arguments}";
venvRunner.RunDetached(args.TrimEnd(), HandleConsoleOutput, HandleExit, workingDirectory: installedPackagePath);
}

3
StabilityMatrix/ViewModels/LaunchViewModel.cs

@ -113,7 +113,8 @@ public partial class LaunchViewModel : ObservableObject
basePackage.ConsoleOutput += OnConsoleOutput;
basePackage.Exited += OnExit;
basePackage.StartupComplete += RunningPackageOnStartupComplete;
await basePackage.RunPackage(packagePath, string.Empty);
var userArgs = string.Join(" ", settingsManager.GetLaunchArgs(SelectedPackage.Id));
await basePackage.RunPackage(packagePath, userArgs);
runningPackage = basePackage;
SetProcessRunning(true);
});

Loading…
Cancel
Save