Fix utility mod listing.

This commit is contained in:
Paul Chote
2017-02-17 20:53:17 +00:00
parent eaf55a864c
commit 00b7b14f2e

View File

@@ -45,9 +45,10 @@ namespace OpenRA
Game.InitializeSettings(Arguments.Empty); Game.InitializeSettings(Arguments.Empty);
var modSearchPaths = new[] { Path.Combine(".", "mods"), Path.Combine("^", "mods") };
if (args.Length == 0) if (args.Length == 0)
{ {
PrintUsage(new InstalledMods(new string[0], new string[0]), null); PrintUsage(new InstalledMods(modSearchPaths, new string[0]), null);
return; return;
} }
@@ -59,7 +60,6 @@ namespace OpenRA
modId = Path.GetFileNameWithoutExtension(modId); modId = Path.GetFileNameWithoutExtension(modId);
} }
var modSearchPaths = new[] { Path.Combine(".", "mods"), Path.Combine("^", "mods") };
var mods = new InstalledMods(modSearchPaths, explicitModPaths); var mods = new InstalledMods(modSearchPaths, explicitModPaths);
if (!mods.Keys.Contains(modId)) if (!mods.Keys.Contains(modId))
{ {