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

@@ -26,7 +26,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
[Desc("MAPFILE", "Generate hash of specified oramap file.")]
void IUtilityCommand.Run(Utility utility, string[] args)
{
using (var package = new Folder(".").OpenPackage(args[1], utility.ModData.ModFiles))
using (var package = new Folder(Platform.GameDir).OpenPackage(args[1], utility.ModData.ModFiles))
Console.WriteLine(Map.ComputeUID(package));
}
}