Add Steam's Quake 3 Arena dir to game dirs on Windows.

This commit is contained in:
SmileTheory 2015-09-17 02:53:19 -07:00
parent 3001cacf89
commit f860a753e0
5 changed files with 85 additions and 0 deletions

View file

@ -44,6 +44,9 @@ qboolean stdinIsATTY;
// Used to determine where to store user-specific files
static char homePath[ MAX_OSPATH ] = { 0 };
// Used to store the Steam Quake 3 installation path
static char steamPath[ MAX_OSPATH ] = { 0 };
/*
==================
Sys_DefaultHomePath
@ -78,6 +81,31 @@ char *Sys_DefaultHomePath(void)
return homePath;
}
/*
================
Sys_SteamPath
================
*/
char *Sys_SteamPath( void )
{
// Disabled since Steam doesn't let you install Quake 3 on Mac/Linux
#if 0
char *p;
if( ( p = getenv( "HOME" ) ) != NULL )
{
#ifdef MACOS_X
char *steamPathEnd = "/Library/Application Support/Steam/SteamApps/common/" STEAMPATH_NAME;
#else
char *steamPathEnd = "/.steam/steam/SteamApps/common/" STEAMPATH_NAME;
#endif
Com_sprintf(steamPath, sizeof(steamPath), "%s%s", p, steamPathEnd);
}
#endif
return steamPath;
}
/*
================
Sys_Milliseconds