Move ModContent out of the engine.

This commit is contained in:
Paul Chote
2016-08-05 19:05:43 +01:00
parent bf4867909f
commit cff8e949d8
9 changed files with 26 additions and 9 deletions

View File

@@ -364,13 +364,8 @@ namespace OpenRA
using (new PerfTimer("LoadMaps"))
ModData.MapCache.LoadMaps();
var content = ModData.Manifest.Get<ModContent>();
var isModContentInstalled = content.Packages
.Where(p => p.Value.Required)
.All(p => p.Value.TestFiles.All(f => File.Exists(Platform.ResolvePath(f))));
// Mod assets are missing!
if (!isModContentInstalled)
if (!ModData.LoadScreen.RequiredContentIsInstalled())
{
InitializeMod("modchooser", new Arguments());
return;