Use Platform.GameDir explicitly in hardcoded paths.

This commit is contained in:
Paul Chote
2020-11-20 17:44:53 +00:00
committed by abcdefg30
parent de7a84e8ed
commit 888915b53b
11 changed files with 11 additions and 11 deletions

View File

@@ -48,7 +48,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
void IUtilityCommand.Run(Utility utility, string[] args)
{
var modData = Game.ModData = utility.ModData;
map = new Map(modData, new Folder(".").OpenPackage(args[1], modData.ModFiles));
map = new Map(modData, new Folder(Platform.GameDir).OpenPackage(args[1], modData.ModFiles));
Console.WriteLine("Resizing map {0} from {1} to {2},{3}", map.Title, map.MapSize, width, height);
map.Resize(width, height);