Permalink
Browse files

Add a version-independent path for videos on Macs.

  • Loading branch information...
1 parent b29fe37 commit 3a56299517c3faf29323cfb756846a63db9da81a @cybersphinx cybersphinx committed Feb 14, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/main.cpp
View
@@ -507,9 +507,6 @@ static void initialize_ConfigDir(void)
// User's home dir first so we allways see what we write
PHYSFS_addToSearchPath( PHYSFS_getWriteDir(), PHYSFS_PREPEND );
-#if defined(WZ_OS_MAC)
- PHYSFS_addToSearchPath( "/Library/Application Support/Warzone 2100/", PHYSFS_APPEND );
-#endif
PHYSFS_permitSymbolicLinks(1);
@@ -556,6 +553,11 @@ static void scanDataDirs( void )
char tmpstr[PATH_MAX], prefix[PATH_MAX];
char* separator;
+#if defined(WZ_OS_MAC)
+ // version-independent location for video files
+ registerSearchPath("/Library/Application Support/Warzone 2100/", 1);
+#endif
+
// Find out which PREFIX we are in...
sstrcpy(prefix, PHYSFS_getBaseDir());

0 comments on commit 3a56299

Please sign in to comment.