Tell PhysicsFS where it may write files.
Defined in <physfs.h>
int PHYSFS_setWriteDir(const char *newDir);| const char * | newDir | The new directory to be the root of the write dir, specified in platform-dependent notation. May be NULL. |
(int) Returns non-zero on success, zero on failure. Use PHYSFS_getLastErrorCode() to obtain the specific error.
Set a new write dir. This will override the previous setting.
All attempts to open a file for writing via PhysicsFS will fail until there is a valid write dir specified through this function.
This call will fail (and fail to change the write dir) if the current write dir still has files open in it.
Passing a NULL here disables the write dir, so no files can be opened for writing via PhysicsFS, until a later call specifies a new write dir.
It is safe to call this function from any thread.
This function is available since PhysicsFS 1.0.0.