Add Migrations GlobalModData.
This commit is contained in:
@@ -344,6 +344,13 @@ namespace OpenRA
|
||||
using (new PerfTimer("LoadMaps"))
|
||||
ModData.MapCache.LoadMaps();
|
||||
|
||||
if (ModData.Manifest.Contains<Migrations>())
|
||||
{
|
||||
var reload = ModData.Manifest.Get<Migrations>().Run();
|
||||
if (reload)
|
||||
InitializeMod(mod, args);
|
||||
}
|
||||
|
||||
var content = ModData.Manifest.Get<ModContent>();
|
||||
var isModContentInstalled = content.Packages
|
||||
.Where(p => p.Value.Required)
|
||||
|
||||
Reference in New Issue
Block a user