From 52ecac7336698ccbf7657f515d33dcd2ffc28a1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Thu, 5 Dec 2013 19:27:40 +0100 Subject: [PATCH] allow mod override e.g. useful for legacy maps where RequiresMod: is not set --- OpenRA.Utility/Command.cs | 4 ++-- OpenRA.Utility/Program.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenRA.Utility/Command.cs b/OpenRA.Utility/Command.cs index 5e2736e505..a68111e987 100644 --- a/OpenRA.Utility/Command.cs +++ b/OpenRA.Utility/Command.cs @@ -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) diff --git a/OpenRA.Utility/Program.cs b/OpenRA.Utility/Program.cs index e9dce0c937..6cac4f4067 100644 --- a/OpenRA.Utility/Program.cs +++ b/OpenRA.Utility/Program.cs @@ -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)