summaryrefslogtreecommitdiff
path: root/src/sys/sys_main.c
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2014-10-27 15:49:23 -0500
committerTim Angus <tim@ngus.net>2015-03-17 11:38:54 +0000
commit97056fbf4fead4f9b68a7ec6ad0ecaec8d5f5d07 (patch)
tree99694fc36e69125d64b0f58577214f93d8b874a6 /src/sys/sys_main.c
parent13f48fe952db6fa892b8b1e08ea203fd5117d727 (diff)
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().
Diffstat (limited to 'src/sys/sys_main.c')
-rw-r--r--src/sys/sys_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/sys_main.c b/src/sys/sys_main.c
index ed5f8e5a..53084846 100644
--- a/src/sys/sys_main.c
+++ b/src/sys/sys_main.c
@@ -170,7 +170,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 );