From 9fd5e15b975cf47b6a73e8330a47afbf49e5e563 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 15 Sep 2009 06:40:55 +0000 Subject: [PATCH] Added support for hardcoded HOMEPATH. Partially fixes Bugzilla #4271. --- code/sys/sys_unix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/sys/sys_unix.c b/code/sys/sys_unix.c index 641770ca..f80a27f0 100644 --- a/code/sys/sys_unix.c +++ b/code/sys/sys_unix.c @@ -54,7 +54,9 @@ char *Sys_DefaultHomePath(void) if( ( p = getenv( "HOME" ) ) != NULL ) { Q_strncpyz( homePath, p, sizeof( homePath ) ); -#ifdef MACOS_X +#ifdef HOMEPATH + Q_strcat( homePath, sizeof( homePath ), HOMEPATH ); +#elif defined(MACOS_X) Q_strcat( homePath, sizeof( homePath ), "/Library" ); mkdir( homePath, 0750 ); /* just in case. */ Q_strcat( homePath, sizeof( homePath ), "/Application Support" );