Skip to content

cf_fs_get_actual_path

Category: file
GitHub: cute_file_system.h


Converts a virtual path to an actual path.

const char* cf_fs_get_actual_path(const char* virtual_path);
Parameters Description
virtual_path A path to the file.

Remarks

This can be useful for editors, asset hotloading, or other similar development features. When shipping your game it's highly recommended to not call this function at all, and only use it for development purposes. If the virtual path points to a completely fake directory this will return the first archive found there. This function can return a directory, an archive, a file, or NULL if nothing suitable was found at all. Virtual File System.

cf_fs_read_entire_file_to_memory
cf_fs_read_entire_file_to_memory_and_nul_terminate
cf_fs_write_entire_buffer_to_file