Fix pid file ignoring user set fs_homepath

Create pid file in fs_homepath instead of (always) default homepath.
If not manually set, fs_homepath is set to Sys_DefaultHomePath().
This commit is contained in:
Zack Middleton 2014-10-27 15:49:23 -05:00
parent 3273df14af
commit 39cf21bf54

View file

@ -169,7 +169,7 @@ Sys_PIDFileName
*/
static char *Sys_PIDFileName( void )
{
const char *homePath = Sys_DefaultHomePath( );
const char *homePath = Cvar_VariableString( "fs_homepath" );
if( *homePath != '\0' )
return va( "%s/%s", homePath, PID_FILENAME );