Skip to content

Commit

Permalink
Do not pass in an empty command line
Browse files Browse the repository at this point in the history
  • Loading branch information
MeFisto94 committed May 6, 2024
1 parent 50d1506 commit f54bc5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,12 @@ private async void btnStartGame_Click(object sender, EventArgs e)
builder.Append($"--file=\"{activeProfile.GameExecutable}\" ");
builder.Append($"--modsJsonPath=\"{Path.Combine(activeProfile.ProfileFolder, "mods.json")}\" ");
builder.Append($"--frameworkDll=\"{activeProfile.FrameworkLocation}\" ");
builder.Append($"--commandLine=\"{activeProfile.CommandLine}\"");

if (!string.IsNullOrEmpty(activeProfile.CommandLine))
{
builder.Append($"--commandLine=\"{activeProfile.CommandLine}\"");
}

var launcherStartInfo = new ProcessStartInfo(Path.Combine(frameworkFolder, "Andraste.Launcher.exe"), builder.ToString())
{
UseShellExecute = false,
Expand Down

0 comments on commit f54bc5f

Please sign in to comment.