Merge pull request #1013 from wabbajack-tools/issue-983

Pass launcher args into Wabbajack.exe during launching
This commit is contained in:
Timothy Baldridge 2020-08-07 04:14:15 -07:00 committed by GitHub
commit cad611875d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);