mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-11 07:11:36 +00:00
Fix compiling on Windows without Steam path/appid
This commit is contained in:
parent
9732f1ba69
commit
1902b6e659
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,6 @@ char *Sys_SteamPath( void )
|
||||||
HKEY steamRegKey;
|
HKEY steamRegKey;
|
||||||
DWORD pathLen = MAX_OSPATH;
|
DWORD pathLen = MAX_OSPATH;
|
||||||
qboolean finishPath = qfalse;
|
qboolean finishPath = qfalse;
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef STEAMPATH_APPID
|
#ifdef STEAMPATH_APPID
|
||||||
if (!steamPath[0] && !RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Steam App " STEAMPATH_APPID, 0, KEY_QUERY_VALUE, &steamRegKey))
|
if (!steamPath[0] && !RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Steam App " STEAMPATH_APPID, 0, KEY_QUERY_VALUE, &steamRegKey))
|
||||||
|
@ -181,6 +180,7 @@ char *Sys_SteamPath( void )
|
||||||
if (finishPath)
|
if (finishPath)
|
||||||
Q_strcat(steamPath, MAX_OSPATH, "\\SteamApps\\common\\" STEAMPATH_NAME );
|
Q_strcat(steamPath, MAX_OSPATH, "\\SteamApps\\common\\" STEAMPATH_NAME );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return steamPath;
|
return steamPath;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue