Clean up GetMapHash lint rule.
This commit is contained in:
@@ -24,9 +24,8 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
|||||||
[Desc("MAPFILE", "Generate hash of specified oramap file.")]
|
[Desc("MAPFILE", "Generate hash of specified oramap file.")]
|
||||||
public void Run(ModData modData, string[] args)
|
public void Run(ModData modData, string[] args)
|
||||||
{
|
{
|
||||||
Game.ModData = modData;
|
using (var package = modData.ModFiles.OpenPackage(args[1]))
|
||||||
var result = new Map(args[1]).Uid;
|
Console.WriteLine(Map.ComputeUID(package));
|
||||||
Console.WriteLine(result);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user