aboutsummaryrefslogtreecommitdiffstats
path: root/code/sys/sys_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/sys/sys_unix.c')
-rw-r--r--code/sys/sys_unix.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/code/sys/sys_unix.c b/code/sys/sys_unix.c
index c10a6b2..f1a18ab 100644
--- a/code/sys/sys_unix.c
+++ b/code/sys/sys_unix.c
@@ -54,7 +54,11 @@ char *Sys_DefaultHomePath(void)
{
Q_strncpyz( homePath, p, sizeof( homePath ) );
#ifdef MACOS_X
- Q_strcat( homePath, sizeof( homePath ), "/Library/Application Support/Quake3" );
+ Q_strcat( homePath, sizeof( homePath ), "/Library" );
+ mkdir( homePath, 0777 ); /* just in case. */
+ Q_strcat( homePath, sizeof( homePath ), "/Application Support" );
+ mkdir( homePath, 0777 ); /* just in case. */
+ Q_strcat( homePath, sizeof( homePath ), "/Quake3" );
#else
Q_strcat( homePath, sizeof( homePath ), "/.q3a" );
#endif