mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-27 17:30:51 +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)
|
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);
|
FString nice = NicePath(value);
|
||||||
if (nice.Len() > 0)
|
if (nice.Len() > 0)
|
||||||
{
|
{
|
||||||
|
@ -213,11 +220,6 @@ TArray<FString> CollectSearchPaths()
|
||||||
{
|
{
|
||||||
CollectSubdirectories(searchpaths, nice);
|
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
|
else
|
||||||
{
|
{
|
||||||
AddSearchPath(searchpaths, nice);
|
AddSearchPath(searchpaths, nice);
|
||||||
|
|
Loading…
Reference in a new issue