Changeset View
Changeset View
Standalone View
Standalone View
head/games/ioquake3/files/patch-code-sys-sys_unix.c
--- code/sys/sys_unix.c.orig 2008-11-11 00:55:22.000000000 +0100 | --- code/sys/sys_unix.c.orig 2008-11-10 23:55:22 UTC | ||||
+++ code/sys/sys_unix.c 2011-10-27 13:11:15.000000000 +0200 | +++ code/sys/sys_unix.c | ||||
@@ -53,7 +53,9 @@ | @@ -53,7 +53,9 @@ char *Sys_DefaultHomePath(void) | ||||
if( ( p = getenv( "HOME" ) ) != NULL ) | if( ( p = getenv( "HOME" ) ) != NULL ) | ||||
{ | { | ||||
Q_strncpyz( homePath, p, sizeof( homePath ) ); | Q_strncpyz( homePath, p, sizeof( homePath ) ); | ||||
-#ifdef MACOS_X | -#ifdef MACOS_X | ||||
+#ifdef HOMEPATH | +#ifdef HOMEPATH | ||||
+ Q_strcat( homePath, sizeof( homePath ), HOMEPATH ); | + Q_strcat( homePath, sizeof( homePath ), HOMEPATH ); | ||||
+#elif defined MACOS_X | +#elif defined MACOS_X | ||||
Q_strcat( homePath, sizeof( homePath ), "/Library/Application Support/Quake3" ); | Q_strcat( homePath, sizeof( homePath ), "/Library/Application Support/Quake3" ); | ||||
#else | #else | ||||
Q_strcat( homePath, sizeof( homePath ), "/.q3a" ); | Q_strcat( homePath, sizeof( homePath ), "/.q3a" ); |