Use Platform.GameDir explicitly in hardcoded paths.

This commit is contained in:
Paul Chote
2020-11-20 17:44:53 +00:00
committed by abcdefg30
parent de7a84e8ed
commit 888915b53b
11 changed files with 11 additions and 11 deletions

View File

@@ -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") };
new[] { Path.Combine(Platform.GameDir, "mods") };
if (args.Length == 0)
{