[iortcw] 241/497: All: Fix pid file ignoring user set fs_homepath

Simon McVittie smcv at debian.org
Fri Sep 8 10:36:59 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit 18c3b9897cc4086282c0c47abc230c67d1421d34
Author: M4N4T4RMS at gmail.com <M4N4T4RMS at gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date:   Sun Nov 2 15:05:47 2014 +0000

    All: Fix pid file ignoring user set fs_homepath
---
 MP/code/sys/sys_main.c | 2 +-
 SP/code/sys/sys_main.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/MP/code/sys/sys_main.c b/MP/code/sys/sys_main.c
index db21775..6df4aff 100644
--- a/MP/code/sys/sys_main.c
+++ b/MP/code/sys/sys_main.c
@@ -175,7 +175,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 );
diff --git a/SP/code/sys/sys_main.c b/SP/code/sys/sys_main.c
index f87d8d1..794ef8d 100644
--- a/SP/code/sys/sys_main.c
+++ b/SP/code/sys/sys_main.c
@@ -175,7 +175,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 );

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list