Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actually use the compile --outputPath option if the user provides one #2432

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Wabbajack.CLI/Verbs/Compile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using Wabbajack.DTOs.JsonConverters;
using Wabbajack.Networking.WabbajackClientApi;
using Wabbajack.Paths;
using Wabbajack.Paths.IO;
using Wabbajack.VFS;

namespace Wabbajack.CLI.Verbs;
Expand Down Expand Up @@ -58,6 +59,12 @@ public async Task<int> Run(AbsolutePath installPath, AbsolutePath outputPath,

inferredSettings.UseGamePaths = true;

if(outputPath.DirectoryExists())
{
inferredSettings.OutputFile = outputPath.Combine(inferredSettings.OutputFile.FileName);
_logger.LogInformation("Output file will be in: {outputPath}", inferredSettings.OutputFile);
}

var compiler = MO2Compiler.Create(_serviceProvider, inferredSettings);
var result = await compiler.Begin(token);
if (!result)
Expand Down
Loading