Rework mod enumeration / caching.
- Replaced ModMetadata.AllMods with Game.Mods. - Store / reference mod Manifest instead of ModMetadata. - Removes engine dependency on ModContent class.
This commit is contained in:
@@ -79,7 +79,7 @@ namespace OpenRA.Mods.Common.LoadScreens
|
||||
if (replayMeta != null)
|
||||
{
|
||||
var mod = replayMeta.GameInfo.Mod;
|
||||
if (mod != null && mod != Game.ModData.Manifest.Mod.Id && ModMetadata.AllMods.ContainsKey(mod))
|
||||
if (mod != null && mod != Game.ModData.Manifest.Id && Game.Mods.ContainsKey(mod))
|
||||
Game.InitializeMod(mod, args);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user