mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-12 07:34:50 +00:00
- Fixed: Extra Steam paths still need steamapps/common appended to them.
This commit is contained in:
parent
86372fce34
commit
8ee0554d56
1 changed files with 3 additions and 1 deletions
|
@ -99,7 +99,7 @@ static TArray<FString> PSR_ReadBaseInstalls(FScanner &sc)
|
||||||
if(key.Left(18).CompareNoCase("BaseInstallFolder_") == 0)
|
if(key.Left(18).CompareNoCase("BaseInstallFolder_") == 0)
|
||||||
{
|
{
|
||||||
sc.MustGetToken(TK_StringConst);
|
sc.MustGetToken(TK_StringConst);
|
||||||
result.Push(sc.String);
|
result.Push(FString(sc.String) + "/steamapps/common");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -170,6 +170,7 @@ TArray<FString> I_GetSteamPath()
|
||||||
FString OSX_FindApplicationSupport();
|
FString OSX_FindApplicationSupport();
|
||||||
|
|
||||||
FString regPath = OSX_FindApplicationSupport() + "/Steam/config/config.vdf";
|
FString regPath = OSX_FindApplicationSupport() + "/Steam/config/config.vdf";
|
||||||
|
Printf("Reading %s\n", regPath.GetChars());
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
SteamInstallFolders = ParseSteamRegistry(regPath);
|
SteamInstallFolders = ParseSteamRegistry(regPath);
|
||||||
|
@ -208,6 +209,7 @@ TArray<FString> I_GetSteamPath()
|
||||||
{
|
{
|
||||||
struct stat st;
|
struct stat st;
|
||||||
FString candidate(SteamInstallFolders[i] + "/" + AppInfo[app].BasePath);
|
FString candidate(SteamInstallFolders[i] + "/" + AppInfo[app].BasePath);
|
||||||
|
Printf("Checking %s\n", candidate.GetChars());
|
||||||
if(stat(candidate, &st) == 0 && S_ISDIR(st.st_mode))
|
if(stat(candidate, &st) == 0 && S_ISDIR(st.st_mode))
|
||||||
result.Push(candidate);
|
result.Push(candidate);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue