Mount the mod filesystem context in the ModData ctor.

This commit is contained in:
Paul Chote
2016-02-03 21:01:20 +00:00
parent b81d2d8333
commit 45bae7e9b3
7 changed files with 2 additions and 11 deletions

View File

@@ -362,7 +362,6 @@ namespace OpenRA
return;
}
ModData.MountFiles();
ModData.InitializeLoaders();
Renderer.InitializeFonts(ModData.Manifest);

View File

@@ -56,6 +56,8 @@ namespace OpenRA
LoadScreen.Display();
}
ModFiles.LoadFromManifest(Manifest);
WidgetLoader = new WidgetLoader(this);
RulesetCache = new RulesetCache(this);
RulesetCache.LoadingProgress += HandleLoadingProgress;
@@ -86,11 +88,6 @@ namespace OpenRA
LoadScreen.Display();
}
public void MountFiles()
{
ModFiles.LoadFromManifest(Manifest);
}
public void InitializeLoaders()
{
// all this manipulation of static crap here is nasty and breaks