Skip to content

Commit

Permalink
Fix duplicate #base
Browse files Browse the repository at this point in the history
  • Loading branch information
cooolbros committed Jan 6, 2024
1 parent d2a4ac5 commit 75b4414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HUDMerger/Models/HUD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ void RemoveBaseSchemeValues(string folderPath, IEnumerable<string> 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(
Expand Down

0 comments on commit 75b4414

Please sign in to comment.