mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Missing awaits
This commit is contained in:
parent
964269de47
commit
0550dd751c
@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.IO.Compression;
|
||||
@ -119,7 +119,7 @@ namespace Wabbajack.Lib
|
||||
return true;
|
||||
}
|
||||
|
||||
public void ExportModList()
|
||||
public async Task ExportModList()
|
||||
{
|
||||
Utils.Log($"Exporting ModList to {ModListOutputFile}");
|
||||
|
||||
@ -192,7 +192,7 @@ namespace Wabbajack.Lib
|
||||
|
||||
|
||||
Utils.Log("Removing ModList staging folder");
|
||||
Utils.DeleteDirectory(ModListOutputFolder);
|
||||
await Utils.DeleteDirectory(ModListOutputFolder);
|
||||
}
|
||||
|
||||
public void GenerateManifest()
|
||||
|
@ -314,7 +314,7 @@ namespace Wabbajack.Lib
|
||||
GenerateManifest();
|
||||
|
||||
UpdateTracker.NextStep("Exporting Modlist");
|
||||
ExportModList();
|
||||
await ExportModList();
|
||||
|
||||
ResetMembers();
|
||||
|
||||
|
@ -22,7 +22,7 @@ namespace Wabbajack.VirtualFileSystem
|
||||
static Context()
|
||||
{
|
||||
Utils.Log("Cleaning VFS, this may take a bit of time");
|
||||
Utils.DeleteDirectory(StagingFolder);
|
||||
Utils.DeleteDirectory(StagingFolder).Wait();
|
||||
}
|
||||
public const ulong FileVersion = 0x03;
|
||||
public const string Magic = "WABBAJACK VFS FILE";
|
||||
@ -360,7 +360,7 @@ namespace Wabbajack.VirtualFileSystem
|
||||
}
|
||||
}
|
||||
|
||||
public class TemporaryDirectory : IDisposable
|
||||
public class TemporaryDirectory : IAsyncDisposable
|
||||
{
|
||||
public TemporaryDirectory(AbsolutePath name)
|
||||
{
|
||||
@ -371,10 +371,10 @@ namespace Wabbajack.VirtualFileSystem
|
||||
|
||||
public AbsolutePath FullName { get; }
|
||||
|
||||
public void Dispose()
|
||||
public async ValueTask DisposeAsync()
|
||||
{
|
||||
if (FullName.Exists)
|
||||
Utils.DeleteDirectory(FullName);
|
||||
if (FullName.Exists)
|
||||
await Utils.DeleteDirectory(FullName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -185,7 +185,7 @@ namespace Wabbajack.VirtualFileSystem
|
||||
|
||||
if (FileExtractor.CanExtract(absPath))
|
||||
{
|
||||
using var tempFolder = Context.GetTemporaryFolder();
|
||||
await using var tempFolder = Context.GetTemporaryFolder();
|
||||
await FileExtractor.ExtractAll(context.Queue, absPath, tempFolder.FullName);
|
||||
|
||||
var list = await tempFolder.FullName.EnumerateFiles()
|
||||
|
Loading…
Reference in New Issue
Block a user