- fixed accessing Steam games on Linux and macOS

Special $STEAM "environment variable" should not be expanded
This commit is contained in:
alexey.lysiuk 2020-02-01 12:16:02 +02:00 committed by Christoph Oelckers
parent 1cce5d8de2
commit 2dafa4555d

View file

@ -202,6 +202,13 @@ TArray<FString> CollectSearchPaths()
{
if (stricmp(key, "Path") == 0)
{
// Checking Steam via a list entry allows easy removal if not wanted.
if (stricmp(value, "$STEAM") == 0)
{
G_AddExternalSearchPaths(searchpaths);
continue;
}
FString nice = NicePath(value);
if (nice.Len() > 0)
{
@ -213,11 +220,6 @@ TArray<FString> CollectSearchPaths()
{
CollectSubdirectories(searchpaths, nice);
}
// Checking Steam via a list entry allows easy removal if not wanted.
else if (nice.CompareNoCase("$STEAM") == 0)
{
G_AddExternalSearchPaths(searchpaths);
}
else
{
AddSearchPath(searchpaths, nice);