allow mod override
e.g. useful for legacy maps where RequiresMod: is not set
This commit is contained in:
@@ -297,8 +297,8 @@ namespace OpenRA.Utility
|
|||||||
public static void GenerateMinimap(string[] args)
|
public static void GenerateMinimap(string[] args)
|
||||||
{
|
{
|
||||||
var map = new Map(args[1]);
|
var map = new Map(args[1]);
|
||||||
|
var mod = args.Length > 1 ? args[2] : map.RequiresMod;
|
||||||
Game.modData = new ModData(map.RequiresMod);
|
Game.modData = new ModData(mod);
|
||||||
|
|
||||||
FileSystem.UnmountAll();
|
FileSystem.UnmountAll();
|
||||||
foreach (var dir in Game.modData.Manifest.Folders)
|
foreach (var dir in Game.modData.Manifest.Folders)
|
||||||
|
|||||||
@@ -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(" --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(" --docs MOD Generate trait documentation in MarkDown format.");
|
||||||
Console.WriteLine(" --map-hash MAPFILE Generate hash of specified oramap file.");
|
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)
|
static string GetNamedArg(string[] args, string arg)
|
||||||
|
|||||||
Reference in New Issue
Block a user