[quake3-commits] r1627 - trunk/code/sys
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Sep 15 02:40:56 EDT 2009
Author: icculus
Date: 2009-09-15 02:40:55 -0400 (Tue, 15 Sep 2009)
New Revision: 1627
Modified:
trunk/code/sys/sys_unix.c
Log:
Added support for hardcoded HOMEPATH.
Partially fixes Bugzilla #4271.
Modified: trunk/code/sys/sys_unix.c
===================================================================
--- trunk/code/sys/sys_unix.c 2009-09-15 06:32:05 UTC (rev 1626)
+++ trunk/code/sys/sys_unix.c 2009-09-15 06:40:55 UTC (rev 1627)
@@ -54,7 +54,9 @@
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" );
More information about the quake3-commits
mailing list