Mount the mod filesystem context in the ModData ctor.
This commit is contained in:
@@ -362,7 +362,6 @@ namespace OpenRA
|
||||
return;
|
||||
}
|
||||
|
||||
ModData.MountFiles();
|
||||
ModData.InitializeLoaders();
|
||||
Renderer.InitializeFonts(ModData.Manifest);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user