mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-23 12:32:09 +00:00
Create "~/Library/Application Support" on Mac OS X if it doesn't exist.
Apparently this can happen on freshly-installed Xserves? Also, a moron user could have dragged it to the trash anyhow. Fixes Bugzilla #4052.
This commit is contained in:
parent
df13db2b64
commit
a5980d56d9
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue