Require Game.Mod to be give an a launch arg to OpenRA.Game.exe.

This commit is contained in:
Paul Chote
2017-04-21 16:55:16 +00:00
parent 215aa6fa60
commit 688feea33b
5 changed files with 16 additions and 23 deletions

View File

@@ -115,9 +115,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
catch (Exception) { }
}
Manifest initialMod;
Game.Mods.TryGetValue(Game.Settings.Game.PreviousMod, out initialMod);
SelectMod(initialMod != null && initialMod.Id != "modchooser" ? initialMod : Game.Mods["ra"]);
SelectMod(Game.Mods["ra"]);
RebuildModList();
}