From fc45191438cd792613c376894121ad06b8dc3015 Mon Sep 17 00:00:00 2001 From: Timothy Baldridge Date: Mon, 30 Oct 2023 21:35:57 -0600 Subject: [PATCH] Fix list validation some more --- Wabbajack.CLI/Verbs/ValidateLists.cs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Wabbajack.CLI/Verbs/ValidateLists.cs b/Wabbajack.CLI/Verbs/ValidateLists.cs index 213ad857..7be85f70 100644 --- a/Wabbajack.CLI/Verbs/ValidateLists.cs +++ b/Wabbajack.CLI/Verbs/ValidateLists.cs @@ -187,13 +187,7 @@ public class ValidateLists } } } - - var downloader = _dispatcher.Downloader(archive); - if (downloader is IProxyable proxyable) - { - _proxyableFiles.Add((proxyable.UnParse(archive.State), archive.Hash)); - } - + return new ValidatedArchive { Status = ArchiveStatus.InValid, @@ -201,6 +195,15 @@ public class ValidateLists }; }).ToArray(); + foreach (var archive in archives) + { + var downloader = _dispatcher.Downloader(archive.Original); + if (downloader is IProxyable proxyable) + { + _proxyableFiles.Add((proxyable.UnParse(archive.Original.State), archive.Original.Hash)); + } + } + validatedList.Archives = archives; validatedList.Status = archives.Any(a => a.Status == ArchiveStatus.InValid) ? ListStatus.Failed