Steam and Gog resolvers now take IDFiles into account.

This commit is contained in:
IceReaper
2023-03-30 12:27:31 +02:00
committed by Matthias Mailänder
parent 56c0680685
commit d97df78f4f
2 changed files with 13 additions and 3 deletions

View File

@@ -43,8 +43,13 @@ namespace OpenRA.Mods.Common.Installer
if (!data.TryGetValue("installdir", out var installDir))
continue;
if (installDir != null)
return Path.Combine(steamDirectory, "steamapps", "common", installDir);
if (installDir == null)
continue;
var path = Path.Combine(steamDirectory, "steamapps", "common", installDir);
if (InstallerUtils.IsValidSourcePath(path, modSource))
return path;
}
return null;