Merge pull request #11528 from pchote/migrations

Delete legacy downloaded scores.mix on first run
This commit is contained in:
reaperrr
2016-06-26 16:54:02 +02:00
committed by GitHub
4 changed files with 77 additions and 0 deletions

View File

@@ -345,6 +345,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)