Remove a directory or archive from the search path.
As of PhysicsFS 2.1, use PHYSFS_unmount() instead. This function just wraps it anyhow. There's no functional difference except the vocabulary changed from "adding to the search path" to "mounting" when that functionality was extended, and thus the preferred way to accomplish this function's work is now called "unmounting."
Defined in <physfs.h>
int PHYSFS_removeFromSearchPath(const char *oldDir);| const char * | oldDir | dir/archive to remove. |
(int) Returns nonzero on success, zero on failure. Use PHYSFS_getLastErrorCode() to obtain the specific error.
This function is equivalent to:
PHYSFS_unmount(oldDir);You must use this and not PHYSFS_unmount if binary compatibility with PhysicsFS 1.0 is important (which it may not be for many people).
It is safe to call this function from any thread.
This function is available since PhysicsFS 1.0.0.