Determine a mounted archive's mountpoint.
Defined in <physfs.h>
const char * PHYSFS_getMountPoint(const char *dir);| const char * | dir | directory or archive previously added to the path, in platform-dependent notation. This must match the string used when adding, even if your string would also reference the same file with a different string of characters. |
(const char *) Returns READ-ONLY string of mount point if added to path, NULL on failure (bogus archive, etc). Use PHYSFS_getLastErrorCode() to obtain the specific error.
You give this function the name of an archive or dir you successfully added to the search path, and it reports the location in the interpolated tree where it is mounted. Files mounted with a NULL mountpoint or through PHYSFS_addToSearchPath() will report "/". The return value is READ ONLY and valid until the archive is removed from the search path.
It is safe to call this function from any thread.
This function is available since PhysicsFS 2.0.0.