mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Don't re-hash files during compilation
This commit is contained in:
parent
77405be7ec
commit
3e3461d8b0
@ -126,9 +126,18 @@ using Wabbajack.Lib.Downloaders;
|
||||
var client = await GetClient();
|
||||
var results = await client.GetJsonAsync<Archive[]>($"{Consts.WabbajackBuildServerUri}mod_files/by_hash/{hash.ToHex()}");
|
||||
|
||||
await DownloadDispatcher.PrepareAll(results.Select(r => r.State));
|
||||
foreach (var result in results)
|
||||
{
|
||||
if (await result.State.Verify(result)) return result.State;
|
||||
try
|
||||
{
|
||||
if (await result.State.Verify(result)) return result.State;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Utils.Log($"Verification error for failed for inferenced archive {result.State.PrimaryKeyString}");
|
||||
Utils.Log(ex.ToString());
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user