Mount the mod filesystem context in the ModData ctor.
This commit is contained in:
@@ -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[] { };
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user