Fixed define mistake in PHYSFSX_init

This commit is contained in:
zicodxx 2007-10-15 16:24:30 +00:00
parent 6923527b1a
commit dd279061fe
2 changed files with 6 additions and 2 deletions

View file

@ -4,6 +4,7 @@ D2X-Rebirth Changelog
--------
libmve/mveplay.c: Set defines for USE_SDLMIXER to fix issues while compiling
d2x.ini, main/inferno.c: Removed -userdir switches from command-line and INI since it's not available anymore
include/physfsx.h: Fixed define mistake in PHYSFSX_init
20071014
--------

View file

@ -40,8 +40,10 @@
// in the same directory as D2X. A second one can be in the user directory.
static inline void PHYSFSX_init(int argc, char *argv[])
{
#if defined(__unix__)
char *path = NULL;
char fullPath[PATH_MAX + 5];
#endif
PHYSFS_init(argv[0]);
PHYSFS_permitSymbolicLinks(1);
@ -52,8 +54,8 @@ static inline void PHYSFSX_init(int argc, char *argv[])
#endif
#if defined(__unix__)
path = "~/.d2x-rebirth/";
#endif
path = "~/.d2x-rebirth/";
PHYSFS_removeFromSearchPath(PHYSFS_getBaseDir());
if (path[0] == '~') // yes, this tilde can be put before non-unix paths.
@ -98,6 +100,7 @@ static inline void PHYSFSX_init(int argc, char *argv[])
}
PHYSFS_addToSearchPath(PHYSFS_getWriteDir(), 1);
#endif
InitArgs( argc,argv );