Function physfs_sys::PHYSFS_deregisterArchiver[][src]

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

\fn int PHYSFS_deregisterArchiver(const char *ext) \brief Remove an archiver from the system.

If for some reason, you only need your previously-registered archiver to live for a portion of your app’s lifetime, you can remove it from the system once you’re done with it through this function.

This fails if there are any archives still open that use this archiver.

This function can also remove internally-supplied archivers, like .zip support or whatnot. This could be useful in some situations, like disabling support for them outright or overriding them with your own implementation. Once an internal archiver is disabled like this, PhysicsFS provides no mechanism to recover them, short of calling PHYSFS_deinit() and PHYSFS_init() again.

PHYSFS_deinit() will automatically deregister all archivers, so you don’t need to explicitly deregister yours if you otherwise shut down cleanly.

\param ext Filename extension that the archiver handles. \return Zero on error, non-zero on success.

\sa PHYSFS_Archiver \sa PHYSFS_registerArchiver