diff --git a/Form1.cs b/Form1.cs index 369a43e..2e79b29 100644 --- a/Form1.cs +++ b/Form1.cs @@ -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,