Pass launcher args into Wabbajack.exe during launching

This commit is contained in:
Timothy Baldridge 2020-08-06 21:20:31 -06:00
parent aaa2275032
commit 0a731d2f90

View File

@ -114,6 +114,7 @@ namespace Wabbajack.Launcher
var info = new ProcessStartInfo
{
FileName = Path.Combine(wjFolder, "Wabbajack.exe"),
Arguments = string.Join(" ", Environment.GetCommandLineArgs().Skip(1).Select(s => s.Contains(' ') ? '\"' + s + '\"' : s)),
WorkingDirectory = wjFolder,
};
Process.Start(info);