Make steam path optional at compile time for standalone games

This commit is contained in:
Zack Middleton 2015-09-22 19:25:16 -05:00
parent 750fdc0e43
commit 7e96fd9cb6
3 changed files with 5 additions and 3 deletions

View file

@ -136,6 +136,7 @@ Sys_SteamPath
*/
char *Sys_SteamPath( void )
{
#ifdef STEAMPATH_NAME
HKEY steamRegKey;
if (!RegOpenKeyEx(HKEY_CURRENT_USER, "Software\\Valve\\Steam", 0, KEY_QUERY_VALUE, &steamRegKey))
@ -156,6 +157,7 @@ char *Sys_SteamPath( void )
Q_strcat(steamPath, MAX_OSPATH, "\\SteamApps\\common\\" STEAMPATH_NAME );
}
}
#endif
return steamPath;
}