hard code userdir to ~/Library/Preferences/D2X Rebirth/ for Mac OS X

This commit is contained in:
kreatordxx 2007-11-03 06:36:54 +00:00
parent 0907af33fc
commit 7363a2a5fa
3 changed files with 6 additions and 1 deletions

View file

@ -3,6 +3,7 @@ D2X-Rebirth Changelog
20071103
--------
arch/sdl/jukebox.c: hack to remove warning when compiling on Mac OS X (constant/variable dirent parameter of file selection callback for scandir)
include/physfsx.h, INSTALL.txt: hard code userdir to ~/Library/Preferences/D2X Rebirth/ for Mac OS X
20071101
--------

View file

@ -135,7 +135,7 @@ To see a full list of available command-line options append -h, -? t
d2x.ini
The game will create a config-directory in the Home directory of the user called .d2x-rebirth.
The game will create a config-directory in the Home directory of the user called .d2x-rebirth. On Mac OS X this directory will be called 'D2X Rebirth', in the Preferences folder in the user's Library.
It is used to read/save
*

View file

@ -54,7 +54,11 @@ static inline void PHYSFSX_init(int argc, char *argv[])
#endif
#if defined(__unix__)
# if !(defined(__APPLE__) && defined(__MACH__))
path = "~/.d2x-rebirth/";
# else
path = "~/Library/Preferences/D2X Rebirth/";
# endif
PHYSFS_removeFromSearchPath(PHYSFS_getBaseDir());