Print VFS Location

This commit is contained in:
erri120 2020-02-15 14:12:06 +01:00
parent a0587d876e
commit f523810db4
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135
3 changed files with 9 additions and 5 deletions

View File

@ -22,7 +22,7 @@ namespace Wabbajack.Lib
public bool ReadmeIsWebsite;
public string WabbajackVersion;
protected string _vfsCacheName => Path.Combine(Consts.LocalAppDataPath, $"vfs_compile_cache_{ModListName?.StringSHA256Hex() ?? "_Unknown_"}.bin");
protected string VFSCacheName => Path.Combine(Consts.LocalAppDataPath, $"vfs_compile_cache_{ModListName?.StringSHA256Hex() ?? "_Unknown_"}.bin");
/// <summary>
/// A stream of tuples of ("Update Title", 0.25) which represent the name of the current task
/// and the current progress.

View File

@ -94,8 +94,10 @@ namespace Wabbajack.Lib
Info("Using Profiles: " + string.Join(", ", SelectedProfiles.OrderBy(p => p)));
Utils.Log($"VFS File Location: {VFSCacheName}");
if (cancel.IsCancellationRequested) return false;
await VFS.IntegrateFromFile(_vfsCacheName);
await VFS.IntegrateFromFile(VFSCacheName);
var roots = new List<string>()
{
@ -115,7 +117,7 @@ namespace Wabbajack.Lib
if (cancel.IsCancellationRequested) return false;
await VFS.AddRoots(roots);
await VFS.WriteToFile(_vfsCacheName);
await VFS.WriteToFile(VFSCacheName);
if (Directory.Exists(lootPath))
{

View File

@ -94,8 +94,10 @@ namespace Wabbajack.Lib
UpdateTracker.NextStep("Creating metas for archives");
await CreateMetaFiles();
Utils.Log($"VFS File Location: {VFSCacheName}");
if (cancel.IsCancellationRequested) return false;
await VFS.IntegrateFromFile(_vfsCacheName);
await VFS.IntegrateFromFile(VFSCacheName);
var roots = new List<string> {StagingFolder, GamePath, DownloadsFolder};
AddExternalFolder(ref roots);
@ -103,7 +105,7 @@ namespace Wabbajack.Lib
if (cancel.IsCancellationRequested) return false;
UpdateTracker.NextStep("Indexing folders");
await VFS.AddRoots(roots);
await VFS.WriteToFile(_vfsCacheName);
await VFS.WriteToFile(VFSCacheName);
if (cancel.IsCancellationRequested) return false;
UpdateTracker.NextStep("Cleaning output folder");