1al_set_physfs_file_interface(3) al_set_physfs_file_interface(3)
2
3
4
6 al_set_physfs_file_interface - Allegro 5 API
7
9 #include <allegro5/allegro_physfs.h>
10
11 void al_set_physfs_file_interface(void)
12
14 This function sets both the ALLEGRO_FILE_INTERFACE(3) and ALLE‐
15 GRO_FS_INTERFACE(3) for the calling thread.
16
17 Subsequent calls to al_fopen(3) on the calling thread will be handled
18 by PHYSFS_open(). Operations on the files returned by al_fopen(3) will
19 then be performed through PhysicsFS. Calls to the Allegro filesystem
20 functions, such as al_read_directory(3) or al_create_fs_entry(3), on
21 the calling thread will be diverted to PhysicsFS.
22
23 To remember and restore another file I/O backend, you can use
24 al_store_state(3)/al_restore_state(3).
25
26 Note: due to an oversight, this function differs from
27 al_set_new_file_interface(3) and al_set_standard_file_inter‐
28 face(3) which only alter the current ALLEGRO_FILE_INTERFACE(3).
29
30 Note: PhysFS does not support the text-mode reading and writing,
31 which means that Windows-style newlines will not be preserved.
32
34 al_set_new_file_interface(3).
35
36
37
38Allegro reference manual al_set_physfs_file_interface(3)