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

@ -89,7 +89,7 @@ Sys_SteamPath
char *Sys_SteamPath( void )
{
// Disabled since Steam doesn't let you install Quake 3 on Mac/Linux
#if 0
#if 0 //#ifdef STEAMPATH_NAME
char *p;
if( ( p = getenv( "HOME" ) ) != NULL )

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;
}