Make steam path optional at compile time for standalone games
This commit is contained in:
1 parent
750fdc0e43
commit
7e96fd9cb6
3 files changed
+5
-3
No files matched your search
+1
-1
@@ -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 )
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user