FileSystem

Typedefs

typedef struct binocle_fs binocle_fs
typedef struct binocle_fs_file binocle_fs_file
typedef enum binocle_fs_supported binocle_fs_supported

Enums

enum binocle_fs_supported

Values:

enumerator BINOCLE_FS_SDL
enumerator BINOCLE_FS_PHYSFS

Functions

binocle_fs binocle_fs_new()
bool binocle_fs_init(binocle_fs *fs)
void binocle_fs_destroy(binocle_fs *fs)
bool binocle_fs_mount(char *path, char *mount_point, bool prepend_to_search_path)
bool binocle_fs_get_last_modification_time(char *filename, uint64_t *modtime)
void binocle_fs_enumerate(char *path, PHYSFS_EnumerateCallback callback, void *user_data)
bool binocle_fs_is_directory(const char *filename)
binocle_fs_file binocle_fs_open_read(const char *filename)
void binocle_fs_close(binocle_fs_file file)
bool binocle_fs_read(binocle_fs_file file, void **buffer, size_t *size)
bool binocle_fs_load_binary_file(const char *filename, void **buffer, size_t *size)
bool binocle_fs_load_text_file(const char *filename, char **buffer, size_t *size)
struct binocle_fs

Public Members

uint64_t dummy
struct binocle_fs_file

Public Members

PHYSFS_File *file
char *filename