mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- fixed accessing Steam games on Linux and macOS
Special $STEAM "environment variable" should not be expanded
This commit is contained in:
parent
1cce5d8de2
commit
2dafa4555d
1 changed files with 7 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue