diff --git a/StabilityMatrix/Models/Packages/BasePackage.cs b/StabilityMatrix/Models/Packages/BasePackage.cs index 8eb65b3e..9b0e9bd4 100644 --- a/StabilityMatrix/Models/Packages/BasePackage.cs +++ b/StabilityMatrix/Models/Packages/BasePackage.cs @@ -23,6 +23,8 @@ public abstract class BasePackage public abstract Task> GetReleaseTags(); public abstract List LaunchOptions { get; } + public virtual string? ExtraLaunchArguments { get; set; } = null; + public abstract Task GetLatestVersion(); public abstract Task> GetAllVersions(bool isReleaseMode = true); public abstract Task> GetAllCommits(string branch, int page = 1, int perPage = 10); diff --git a/StabilityMatrix/Models/Packages/VladAutomatic.cs b/StabilityMatrix/Models/Packages/VladAutomatic.cs index f8cbfd42..3f7d8261 100644 --- a/StabilityMatrix/Models/Packages/VladAutomatic.cs +++ b/StabilityMatrix/Models/Packages/VladAutomatic.cs @@ -41,6 +41,8 @@ public class VladAutomatic : BaseGitPackage } }; + public override string ExtraLaunchArguments => "--skip-git"; + public override Task GetLatestVersion() => Task.FromResult("master"); public override async Task> GetAllVersions(bool isReleaseMode = true) diff --git a/StabilityMatrix/ViewModels/LaunchViewModel.cs b/StabilityMatrix/ViewModels/LaunchViewModel.cs index 76b90d50..278124d8 100644 --- a/StabilityMatrix/ViewModels/LaunchViewModel.cs +++ b/StabilityMatrix/ViewModels/LaunchViewModel.cs @@ -118,6 +118,8 @@ public partial class LaunchViewModel : ObservableObject // Load user launch args from settings and convert to string var userArgs = settingsManager.GetLaunchArgs(SelectedPackage.Id); var userArgsString = string.Join(" ", userArgs.Select(opt => opt.ToArgString())); + // Join with extras, if any + userArgsString = string.Join(" ", userArgsString, basePackage.ExtraLaunchArguments); await basePackage.RunPackage(packagePath, userArgsString); runningPackage = basePackage; SetProcessRunning(true);