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:
- Loading bitmap from exe (resource file) (1)
- Grabber and png (1)
- Problems loading using PHYSFS (1)
- [Help]Using Physfs for DataFiles
- How to fix loading videos from zip that is in a path?
- ALLEGRO_NATIVE_PATH_SEP+PHYSFS bug on Windows?
- video & physfs problems in the same file
- Win32 binaries for Allegro 5.2.2 and MinGW 5.3.0.3
- Can't modify config file
- Allegro on NuGet!
Other recent discussions:
- Can't load bitmap from a zipfile (PhysFS addon help)
- Crash in iOS simulator iOS 8 when rotating screen left
- Using std::fstream and PhysicsFS.
- Load bitmap from zip file
- Bug in 5.1.x al_set_standard_file_interface
- [A5] al_filename_exists() can't see file.
- [A5] Just Sharing a simple screen shot function
- [A5] Getting directory exe is running in
- Drag and Drop system and TileMap
- [BUG] Crash when trying to save a configuration file - Allegro 5.0.9