Few small fixes and optimizations

This commit is contained in:
Timothy Baldridge 2021-05-13 14:16:29 -06:00
parent e6a5e46af0
commit 4aaa46090c
2 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,8 @@
### Changelog
#### Version - 2.4.4.2 - ???
* Modlists are now exported as X.wabbajack where X is the name chosen in the Compiler UI
#### Version - 2.4.4.1 - 5/1/2021
* HOTFIX: downgrade cefsharp to fix the in-app browser (fixes Nexus login issue)

View File

@ -184,13 +184,18 @@ namespace Wabbajack
public async Task<GetResponse<ModList>> Compile()
{
AbsolutePath outputFile;
var profileName = string.IsNullOrWhiteSpace(ModlistSettings.ModListName)
? MOProfile
: ModlistSettings.ModListName;
if (Parent.OutputLocation.TargetPath == default)
{
outputFile = (MOProfile + Consts.ModListExtension).RelativeTo(AbsolutePath.EntryPoint);
outputFile = (profileName + Consts.ModListExtension).RelativeTo(AbsolutePath.EntryPoint);
}
else
{
outputFile = Parent.OutputLocation.TargetPath.Combine(MOProfile + Consts.ModListExtension);
outputFile = Parent.OutputLocation.TargetPath.Combine(profileName + Consts.ModListExtension);
}
try