Allow map imports from directories other than game root.
This commit is contained in:
@@ -143,7 +143,7 @@ namespace OpenRA.Mods.Cnc.UtilityCommands
|
||||
|
||||
public override void ReadPacks(IniFile file, string filename)
|
||||
{
|
||||
using (var s = ModData.DefaultFileSystem.Open(filename.Substring(0, filename.Length - 4) + ".bin"))
|
||||
using (var s = File.OpenRead(filename.Substring(0, filename.Length - 4) + ".bin"))
|
||||
UnpackTileData(s);
|
||||
|
||||
ReadOverlay(file);
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
Game.ModData = modData;
|
||||
|
||||
var filename = args[1];
|
||||
using (var stream = modData.DefaultFileSystem.Open(filename))
|
||||
using (var stream = File.OpenRead(filename))
|
||||
{
|
||||
var file = new IniFile(stream);
|
||||
var basic = file.GetSection("Basic");
|
||||
|
||||
Reference in New Issue
Block a user