Remove support for loading mods from the support dir.
This commit is contained in:
@@ -317,7 +317,7 @@ namespace OpenRA
|
||||
var modSearchArg = args.GetValue("Engine.ModSearchPaths", null);
|
||||
var modSearchPaths = modSearchArg != null ?
|
||||
FieldLoader.GetValue<string[]>("Engine.ModsPath", modSearchArg) :
|
||||
new[] { Path.Combine(".", "mods"), Path.Combine("^", "mods") };
|
||||
new[] { Path.Combine(".", "mods") };
|
||||
|
||||
Mods = new InstalledMods(modSearchPaths, explicitModPaths);
|
||||
Console.WriteLine("Internal mods:");
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace OpenRA.Server
|
||||
var envModSearchPaths = Environment.GetEnvironmentVariable("MOD_SEARCH_PATHS");
|
||||
var modSearchPaths = !string.IsNullOrWhiteSpace(envModSearchPaths) ?
|
||||
FieldLoader.GetValue<string[]>("MOD_SEARCH_PATHS", envModSearchPaths) :
|
||||
new[] { Path.Combine(".", "mods"), Path.Combine("^", "mods") };
|
||||
new[] { Path.Combine(".", "mods") };
|
||||
|
||||
var mod = Game.Settings.Game.Mod;
|
||||
var mods = new InstalledMods(modSearchPaths, explicitModPaths);
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace OpenRA
|
||||
var envModSearchPaths = Environment.GetEnvironmentVariable("MOD_SEARCH_PATHS");
|
||||
var modSearchPaths = !string.IsNullOrWhiteSpace(envModSearchPaths) ?
|
||||
FieldLoader.GetValue<string[]>("MOD_SEARCH_PATHS", envModSearchPaths) :
|
||||
new[] { Path.Combine(".", "mods"), Path.Combine("^", "mods") };
|
||||
new[] { Path.Combine(".", "mods") };
|
||||
|
||||
if (args.Length == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user