VFSCacheName into ACompiler

This commit is contained in:
Timothy Baldridge 2020-10-18 07:00:55 -06:00
parent 55b26cec65
commit d919a097e3
2 changed files with 4 additions and 9 deletions

View File

@ -25,7 +25,10 @@ namespace Wabbajack.Lib
public bool ModlistIsNSFW;
protected Version? WabbajackVersion;
public abstract AbsolutePath VFSCacheName { get; }
public AbsolutePath VFSCacheName =>
Consts.LocalAppDataPath.Combine(
$"vfs_compile_cache-2-{Path.Combine((string)SourcePath ?? "Unknown", "ModOrganizer.exe").StringSha256Hex()}.bin");
//protected string VFSCacheName => Path.Combine(Consts.LocalAppDataPath, $"vfs_compile_cache.bin");
/// <summary>
/// A stream of tuples of ("Update Title", 0.25) which represent the name of the current task
@ -34,8 +37,6 @@ namespace Wabbajack.Lib
public IObservable<(string, float)> ProgressUpdates => _progressUpdates;
protected readonly Subject<(string, float)> _progressUpdates = new Subject<(string, float)>();
public abstract ModManager ModManager { get; }
public abstract AbsolutePath GamePath { get; }
public AbsolutePath SourcePath { get;}

View File

@ -33,8 +33,6 @@ namespace Wabbajack.Lib
public string MO2Profile { get; }
public override ModManager ModManager => ModManager.MO2;
public override AbsolutePath GamePath { get; }
public GameMetaData CompilingGame { get; }
@ -45,10 +43,6 @@ namespace Wabbajack.Lib
public override AbsolutePath ModListOutputFile { get; }
public override AbsolutePath VFSCacheName =>
Consts.LocalAppDataPath.Combine(
$"vfs_compile_cache-2-{Path.Combine((string)SourcePath ?? "Unknown", "ModOrganizer.exe").StringSha256Hex()}.bin");
public dynamic MO2Ini { get; }
public AbsolutePath MO2ProfileDir => SourcePath.Combine("profiles", MO2Profile);