Add Engine.DefaultMod argument to override modchooser fallback.

This commit is contained in:
Paul Chote
2017-01-27 16:50:50 +00:00
parent 0c44a49722
commit 657ba90ae3
2 changed files with 4 additions and 4 deletions

View File

@@ -368,8 +368,8 @@ namespace OpenRA
ModData = null;
// Fall back to default if the mod doesn't exist or has missing prerequisites.
if (!IsModInstalled(mod))
mod = new GameSettings().Mod;
if (mod == null || !IsModInstalled(mod))
mod = args.GetValue("Engine.DefaultMod", "modchooser");
Console.WriteLine("Loading mod: {0}", mod);
Settings.Game.Mod = mod;