Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add a version-independent path for videos on Macs.

  • Loading branch information...
commit 3a56299517c3faf29323cfb756846a63db9da81a 1 parent b29fe37
@cybersphinx cybersphinx authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/main.cpp
View
8 src/main.cpp
@@ -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());
Please sign in to comment.
Something went wrong with that request. Please try again.