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

@@ -33,7 +33,6 @@ namespace OpenRA.Mods.Common.UtilityCommands
{
// HACK: The engine code assumes that Game.modData is set.
Game.ModData = modData;
Game.ModData.MountFiles();
var src = args[1];
var shadowIndex = new int[] { };

View File

@@ -27,7 +27,6 @@ namespace OpenRA.Mods.Common.UtilityCommands
public void Run(ModData modData, string[] args)
{
Game.ModData = modData;
modData.MountFiles();
var map = new Map(args[1]);
var minimap = Minimap.RenderMapPreview(map.Rules.TileSets[map.Tileset], map, true);

View File

@@ -44,7 +44,6 @@ namespace OpenRA.Mods.Common.UtilityCommands
{
// HACK: The engine code assumes that Game.modData is set.
Game.ModData = modData;
Game.ModData.MountFiles();
Rules = Game.ModData.RulesetCache.Load();