aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-09-15 06:40:55 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-09-15 06:40:55 +0000
commit6c9c075e8ce2c15feb4a7a2a16e073227a69d3e0 (patch)
treeed63e6c2be3c97b6eabb550cd78455bfa06d3ad0
parent9f15eaa7aeb735f71390e9b86bee4291d72edd44 (diff)
downloadioquake3-aero-6c9c075e8ce2c15feb4a7a2a16e073227a69d3e0.tar.gz
ioquake3-aero-6c9c075e8ce2c15feb4a7a2a16e073227a69d3e0.zip
Added support for hardcoded HOMEPATH.
Partially fixes Bugzilla #4271. git-svn-id: svn://svn.icculus.org/quake3/trunk@1627 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r--code/sys/sys_unix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/code/sys/sys_unix.c b/code/sys/sys_unix.c
index 641770c..f80a27f 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" );