Convert some hashed files to cached hashed files

This commit is contained in:
Timothy Baldridge 2020-05-12 15:31:53 -06:00
parent 80b98935fa
commit 7839a5cd3e
2 changed files with 2 additions and 2 deletions

View File

@ -402,7 +402,7 @@ namespace Wabbajack.Lib
if (path.Size != d.Size) return null;
return await path.FileHashAsync() == d.Hash ? d : null;
return await path.FileHashCachedAsync() == d.Hash ? d : null;
}))
.Do(d =>
{

View File

@ -316,7 +316,7 @@ namespace Wabbajack.Lib
Info($"Generating cleaned ESM for {filename}");
if (!gameFile.Exists) throw new InvalidDataException($"Missing {filename} at {gameFile}");
Status($"Hashing game version of {filename}");
var sha = await gameFile.FileHashAsync();
var sha = await gameFile.FileHashCachedAsync();
if (sha != directive.SourceESMHash)
throw new InvalidDataException(
$"Cannot patch {filename} from the game folder because the hashes do not match. Have you already cleaned the file?");