cf_fs_set_write_directory¶
Category: file
GitHub: cute_file_system.h
Sets a path safe to store game-specific files, such as save data or profiles.
Parameters | Description |
---|---|
platform_dependent_directory | The write directory in platform-dependent notation (use cf_fs_get_user_directory, see remarks for |
more details). |
Return Value¶
Returns any errors as a CF_Result.
Remarks¶
The path is in platform-dependent notation. It's highly recommend to use cf_fs_get_user_directory and pass it into this function when shipping your game. This function will fail if any files are from the write directory are currently open. See Virtual File System for an overview.
Related Pages¶
cf_fs_get_base_directory
cf_fs_dismount
cf_fs_get_user_directory
cf_fs_mount