Add an archive or directory to the search path.
As of PhysicsFS 2.0, use PHYSFS_mount() instead. This function just wraps it anyhow.
Defined in <physfs.h>
int PHYSFS_addToSearchPath(const char *newDir, int appendToPath);| const char * | newDir | directory or archive to add to the path, in platform-dependent notation. |
| int | appendToPath | nonzero to append to search path, zero to prepend. |
(int) Returns nonzero if added to path, zero on failure (bogus archive, dir missing, etc). Use PHYSFS_getLastErrorCode() to obtain the specific error.
This function is equivalent to:
PHYSFS_mount(newDir, NULL, appendToPath);You must use this and not PHYSFS_mount 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.