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; ModData = null;
// Fall back to default if the mod doesn't exist or has missing prerequisites. // Fall back to default if the mod doesn't exist or has missing prerequisites.
if (!IsModInstalled(mod)) if (mod == null || !IsModInstalled(mod))
mod = new GameSettings().Mod; mod = args.GetValue("Engine.DefaultMod", "modchooser");
Console.WriteLine("Loading mod: {0}", mod); Console.WriteLine("Loading mod: {0}", mod);
Settings.Game.Mod = mod; Settings.Game.Mod = mod;

View File

@@ -153,8 +153,8 @@ namespace OpenRA
public class GameSettings public class GameSettings
{ {
[Desc("Load a specific mod on startup. Shipped ones include: ra, cnc and d2k")] [Desc("Load a specific mod on startup.")]
public string Mod = "modchooser"; public string Mod = null;
public string PreviousMod = "ra"; public string PreviousMod = "ra";
public string Platform = "Default"; public string Platform = "Default";