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 committed 2014-10-29 00:03:49 -05:00
1 parent 3273df14af
commit 39cf21bf54
1 file changed
+1 -1
+1 -1
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 );