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
@@ -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