From 8ee0554d567a693f7bff81e3fe8503b15ace716d Mon Sep 17 00:00:00 2001 From: Braden Obrzut Date: Fri, 12 Dec 2014 16:33:49 -0500 Subject: [PATCH] - Fixed: Extra Steam paths still need steamapps/common appended to them. --- src/sdl/i_steam.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sdl/i_steam.cpp b/src/sdl/i_steam.cpp index 1da7fc5fa..f8b4c07d9 100644 --- a/src/sdl/i_steam.cpp +++ b/src/sdl/i_steam.cpp @@ -99,7 +99,7 @@ static TArray PSR_ReadBaseInstalls(FScanner &sc) if(key.Left(18).CompareNoCase("BaseInstallFolder_") == 0) { sc.MustGetToken(TK_StringConst); - result.Push(sc.String); + result.Push(FString(sc.String) + "/steamapps/common"); } else { @@ -170,6 +170,7 @@ TArray I_GetSteamPath() FString OSX_FindApplicationSupport(); FString regPath = OSX_FindApplicationSupport() + "/Steam/config/config.vdf"; + Printf("Reading %s\n", regPath.GetChars()); try { SteamInstallFolders = ParseSteamRegistry(regPath); @@ -208,6 +209,7 @@ TArray I_GetSteamPath() { struct stat st; FString candidate(SteamInstallFolders[i] + "/" + AppInfo[app].BasePath); + Printf("Checking %s\n", candidate.GetChars()); if(stat(candidate, &st) == 0 && S_ISDIR(st.st_mode)) result.Push(candidate); }