mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
ISubCompilerVM.Compile returns bool now
Completion status now marked failure if that bool is false
This commit is contained in:
parent
ada207fb11
commit
e2ebeb9af6
@ -184,8 +184,8 @@ namespace Wabbajack
|
||||
{
|
||||
try
|
||||
{
|
||||
await this.Compiler.Compile();
|
||||
Completed = ErrorResponse.Success;
|
||||
var successful = await this.Compiler.Compile();
|
||||
Completed = ErrorResponse.Create(successful);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -12,6 +12,6 @@ namespace Wabbajack
|
||||
ModlistSettingsEditorVM ModlistSettings { get; }
|
||||
void Unload();
|
||||
IObservable<bool> CanCompile { get; }
|
||||
Task Compile();
|
||||
Task<bool> Compile();
|
||||
}
|
||||
}
|
||||
|
@ -163,7 +163,7 @@ namespace Wabbajack
|
||||
ModlistSettings?.Save();
|
||||
}
|
||||
|
||||
public async Task Compile()
|
||||
public async Task<bool> Compile()
|
||||
{
|
||||
string outputFile;
|
||||
if (string.IsNullOrWhiteSpace(Parent.OutputLocation.TargetPath))
|
||||
@ -193,7 +193,7 @@ namespace Wabbajack
|
||||
{
|
||||
Parent.MWVM.Settings.Performance.AttachToBatchProcessor(ActiveCompilation);
|
||||
|
||||
await ActiveCompilation.Begin();
|
||||
return await ActiveCompilation.Begin();
|
||||
}
|
||||
}
|
||||
finally
|
||||
|
@ -177,7 +177,7 @@ namespace Wabbajack
|
||||
GameLocation.TargetPath = StoreHandler.Instance.GetGamePath(SelectedGame.Game, StoreType.GOG);
|
||||
}
|
||||
|
||||
public async Task Compile()
|
||||
public async Task<bool> Compile()
|
||||
{
|
||||
string outputFile = $"{ModlistSettings.ModListName}{ExtensionManager.Extension}";
|
||||
if (!string.IsNullOrWhiteSpace(Parent.OutputLocation.TargetPath))
|
||||
@ -204,7 +204,7 @@ namespace Wabbajack
|
||||
})
|
||||
{
|
||||
Parent.MWVM.Settings.Performance.AttachToBatchProcessor(ActiveCompilation);
|
||||
await ActiveCompilation.Begin();
|
||||
return await ActiveCompilation.Begin();
|
||||
}
|
||||
}
|
||||
finally
|
||||
|
Loading…
x
Reference in New Issue
Block a user