Skip to content

Commit

Permalink
Merge pull request #2432 from majcosta/pr_use_outputpath
Browse files Browse the repository at this point in the history
Actually use the compile --outputPath option if the user provides one
  • Loading branch information
EzioTheDeadPoet authored Nov 2, 2023
2 parents 437ef90 + f2a2ae4 commit 2adcf45
Showing 1 changed file with 7 additions and 0 deletions.
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

0 comments on commit 2adcf45

Please sign in to comment.