allow mod override

e.g. useful for legacy maps where RequiresMod: is not set
This commit is contained in:
Matthias Mailänder
2013-12-05 19:27:40 +01:00
parent 5a4fc712a9
commit 52ecac7336
2 changed files with 3 additions and 3 deletions

View File

@@ -297,8 +297,8 @@ namespace OpenRA.Utility
public static void GenerateMinimap(string[] args)
{
var map = new Map(args[1]);
Game.modData = new ModData(map.RequiresMod);
var mod = args.Length > 1 ? args[2] : map.RequiresMod;
Game.modData = new ModData(mod);
FileSystem.UnmountAll();
foreach (var dir in Game.modData.Manifest.Folders)

View File

@@ -63,7 +63,7 @@ namespace OpenRA.Utility
Console.WriteLine(" --transpose SRCSHP DESTSHP START N M [START N M ...] Transpose the N*M block of frames starting at START.");
Console.WriteLine(" --docs MOD Generate trait documentation in MarkDown format.");
Console.WriteLine(" --map-hash MAPFILE Generate hash of specified oramap file.");
Console.WriteLine(" --minimap MAPFILE Render PNG minimap of specified oramap file.");
Console.WriteLine(" --minimap MAPFILE [MOD] Render PNG minimap of specified oramap file.");
}
static string GetNamedArg(string[] args, string arg)