From 14ad4e168e8d4e0f99d8a0e94237a4a4393fd788 Mon Sep 17 00:00:00 2001 From: oldnaari Date: Sun, 5 Feb 2023 22:05:44 +0400 Subject: [PATCH] Update DownloadPackageLogic.cs, to log missing files in package --- .../Widgets/Logic/Installation/DownloadPackageLogic.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Mods.Common/Widgets/Logic/Installation/DownloadPackageLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Installation/DownloadPackageLogic.cs index 1f15baf0f2..037b8c40a6 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Installation/DownloadPackageLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Installation/DownloadPackageLogic.cs @@ -226,7 +226,10 @@ namespace OpenRA.Mods.Common.Widgets.Logic foreach (var kv in download.Extract) { if (!package.Contains(kv.Value)) + { + Log.Write("install", $"Downloaded package does not contain {kv.Value} - skipping."); continue; + } onExtractProgress(modData.Translation.GetString(ExtractingEntry, Translation.Arguments("entry", kv.Value))); Log.Write("install", "Extracting " + kv.Value);