Opens a file when it is constructed.
Closes a file when it goes out of scope.
A wrapper for PHYSFS_setBuffer.
A wrapper for PHYSFS_close.
A wrapper for PHYSFS_eof.
A wrapper for PHYSFS_flush.
A wrapper for PHYSFS_fileLength.
A wrapper for PHYSFS_openRead, PHYSFS_openWrite, and PHYSFS_openAppend.
A wrapper for PHYSFS_read.
A wrapper for PHYSFS_read.
A templated wrapper for the PHYSFS_readSBE/UBE* functions.
A templated wrapper for the PHYSFS_readSLE/ULE* functions.
A wrapper for PHYSFS_seek.
A wrapper for PHYSFS_tell.
A wrapper for PHYSFS_write.
A wrapper for PHYSFS_write.
A templated wrapper for the PHYSFS_writeSBE/UBE* functions.
A templated wrapper for the PHYSFS_writeSLE/ULE* functions.
Creates the application write directory.
A wrapper for PHYSFS_exists.
Searches for a given file in the write and base directories and, if it exists, returns a path to the file.
Must be called before any other methods.
A wrapper for PHYSFS_getLastError().
A convenience function which creates a path string to a file in a specific directory.
A wrapper for PHYSFS_mkdir.
A weapper for PHYSFS_mount.
A covenience function that reads the entire content of a file in a single method call.
A wrapper for PHYSFS_delete.
Should be called before the application exits.
Sets the current write directory.
A convenience function that writes an entire buffer to a file in a single method call.
A wrapper of the PhysicsFS library, specifically via the DerelictPHYSFS binding.
In some cases, the methods of Defile directly wrap PhysicsFS functions, doing nothing more than converting between C and D types and throwing exceptions when a call fails. Other methods are for convenience, wrapping multiple PhysicsFS function calls into a single method. For more information on the details of the wrapped PhysicsFS functions, please refer either to the PHYSFS documentation or physfs.h.
Note that the static methods below either wrap functions that work with global state or serve as covenience methods that eliminate the need to deal with an indivdual file. The nonstatic methods wrap functions that manipulate files directly.