From 39cf21bf54332328239e8c05add4429a8cc62749 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Mon, 27 Oct 2014 15:49:23 -0500 Subject: [PATCH] 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(). --- code/sys/sys_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/sys/sys_main.c b/code/sys/sys_main.c index 3102cf56..60cdb50c 100644 --- a/code/sys/sys_main.c +++ b/code/sys/sys_main.c @@ -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 );