Function physfs_sys::PHYSFS_unmount[][src]

pub unsafe extern "C" fn PHYSFS_unmount(
    oldDir: *const c_char
) -> c_int
Expand description

\fn int PHYSFS_unmount(const char *oldDir) \brief Remove a directory or archive from the search path.

This is functionally equivalent to PHYSFS_removeFromSearchPath(), but that function is deprecated to keep the vocabulary paired with PHYSFS_mount().

This must be a (case-sensitive) match to a dir or archive already in the search path, specified in platform-dependent notation.

This call will fail (and fail to remove from the path) if the element still has files open in it.

\warning This function wants the path to the archive or directory that was mounted (the same string used for the “newDir” argument of PHYSFS_addToSearchPath or any of the mount functions), not the path where it is mounted in the tree (the “mountPoint” argument to any of the mount functions).

\param oldDir dir/archive to remove. \return nonzero on success, zero on failure. Use PHYSFS_getLastErrorCode() to obtain the specific error.

\sa PHYSFS_getSearchPath \sa PHYSFS_mount