From 75b44146f78f6fcc0b977a34358aff1c8613efd6 Mon Sep 17 00:00:00 2001 From: cooolbros Date: Sat, 6 Jan 2024 15:17:53 +1100 Subject: [PATCH] Fix duplicate #base --- src/HUDMerger/Models/HUD.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HUDMerger/Models/HUD.cs b/src/HUDMerger/Models/HUD.cs index 6c97bea..517c8d5 100644 --- a/src/HUDMerger/Models/HUD.cs +++ b/src/HUDMerger/Models/HUD.cs @@ -1171,7 +1171,7 @@ void RemoveBaseSchemeValues(string folderPath, IEnumerable baseFiles) } } - if (preloadImagesMerged) + if (preloadImagesMerged && !mainmenuKeyValues.BaseFiles().ToArray().Contains($"mainmenuoverride_preload.res", StringComparer.OrdinalIgnoreCase)) { int index = mainmenuKeyValues.FindLastIndex((kv) => kv.Key.Equals("#base", StringComparison.OrdinalIgnoreCase) && kv.Value is string); mainmenuKeyValues.Insert(