mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Utilize hash cache on install.
This commit is contained in:
parent
aaa2275032
commit
a4254af3c9
@ -202,6 +202,10 @@ namespace Wabbajack.Common
|
||||
bw.Write((ulong)hash);
|
||||
_hashCache.Put(Encoding.UTF8.GetBytes(file.Normalize()), ms.ToArray());
|
||||
}
|
||||
public static void FileHashWriteCache(this AbsolutePath file, Hash hash)
|
||||
{
|
||||
WriteHashCache(file, hash);
|
||||
}
|
||||
|
||||
public static async Task<Hash> FileHashCachedAsync(this AbsolutePath file, bool nullOnIOError = false)
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.IO.Compression;
|
||||
@ -228,6 +228,11 @@ namespace Wabbajack.Lib
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var file in group)
|
||||
{
|
||||
file.To.RelativeTo(OutputFolder).FileHashWriteCache(file.Hash);
|
||||
}
|
||||
|
||||
if (UseCompression)
|
||||
{
|
||||
foreach (var file in group)
|
||||
|
Loading…
Reference in New Issue
Block a user