Rework stale ExternalMod metadata clearing.

This commit is contained in:
Paul Chote
2017-06-28 23:51:19 +00:00
committed by reaperrr
parent b30cfe4ada
commit 372d940936
2 changed files with 53 additions and 30 deletions

View File

@@ -351,6 +351,10 @@ namespace OpenRA
launchPath = launchPath.Substring(1, launchPath.Length - 2);
ExternalMods.Register(Mods[modID], launchPath);
ExternalMod activeMod;
if (ExternalMods.TryGetValue(ExternalMod.MakeKey(Mods[modID]), out activeMod))
ExternalMods.ClearInvalidRegistrations(activeMod);
}
Console.WriteLine("External mods:");