al_set_physfs_file_interface

void al_set_physfs_file_interface(void)
Introduced in 5.0.0

After calling this, subsequent calls to al_fopen will be handled by PHYSFS_open(). Operations on the files returned by al_fopen will then be performed through PhysicsFS.

At the same time, all filesystem functions like al_read_directory or al_create_fs_entry will use PhysicsFS.

This functions only affects the thread it was called from.

To remember and restore another file I/O backend, you can use al_store_state/al_restore_state.

See also: al_set_new_file_interface.

Examples: ex_physfs


Most helpful discussions:

Other recent discussions: