Pass NULL to addSubdirs and removeSubdirs, not false (as the target type is a char* pointer)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4603 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
49a6050b07
commit
a6d84b7c16
|
@ -251,7 +251,7 @@ BOOL rebuildSearchPath( searchPathMode mode, BOOL force )
|
||||||
debug( LOG_WZ, "rebuildSearchPath: Removing [%s] from search path", curSearchPath->path );
|
debug( LOG_WZ, "rebuildSearchPath: Removing [%s] from search path", curSearchPath->path );
|
||||||
#endif // DEBUG
|
#endif // DEBUG
|
||||||
// Remove maps and mods
|
// Remove maps and mods
|
||||||
removeSubdirs( curSearchPath->path, "maps", false );
|
removeSubdirs( curSearchPath->path, "maps", NULL );
|
||||||
removeSubdirs( curSearchPath->path, "mods/global", global_mods );
|
removeSubdirs( curSearchPath->path, "mods/global", global_mods );
|
||||||
removeSubdirs( curSearchPath->path, "mods/campaign", campaign_mods );
|
removeSubdirs( curSearchPath->path, "mods/campaign", campaign_mods );
|
||||||
removeSubdirs( curSearchPath->path, "mods/multiplay", multiplay_mods );
|
removeSubdirs( curSearchPath->path, "mods/multiplay", multiplay_mods );
|
||||||
|
@ -311,7 +311,7 @@ BOOL rebuildSearchPath( searchPathMode mode, BOOL force )
|
||||||
#endif // DEBUG
|
#endif // DEBUG
|
||||||
// Add maps and global and multiplay mods
|
// Add maps and global and multiplay mods
|
||||||
PHYSFS_addToSearchPath( curSearchPath->path, PHYSFS_APPEND );
|
PHYSFS_addToSearchPath( curSearchPath->path, PHYSFS_APPEND );
|
||||||
addSubdirs( curSearchPath->path, "maps", PHYSFS_APPEND, false );
|
addSubdirs( curSearchPath->path, "maps", PHYSFS_APPEND, NULL );
|
||||||
addSubdirs( curSearchPath->path, "mods/global", PHYSFS_APPEND, global_mods );
|
addSubdirs( curSearchPath->path, "mods/global", PHYSFS_APPEND, global_mods );
|
||||||
addSubdirs( curSearchPath->path, "mods/multiplay", PHYSFS_APPEND, multiplay_mods );
|
addSubdirs( curSearchPath->path, "mods/multiplay", PHYSFS_APPEND, multiplay_mods );
|
||||||
PHYSFS_removeFromSearchPath( curSearchPath->path );
|
PHYSFS_removeFromSearchPath( curSearchPath->path );
|
||||||
|
|
Loading…
Reference in New Issue