mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Convert some hashed files to cached hashed files
This commit is contained in:
parent
80b98935fa
commit
7839a5cd3e
@ -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 =>
|
||||
{
|
||||
|
@ -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?");
|
||||
|
Loading…
Reference in New Issue
Block a user