Easily wrap a PhysicsFS PHYSFS_File as a standard C FILE with a single function call.
Note: this library relies in the funopen functions, which is not available in Windows and Web/Emscripten platforms.
FILE *PHYSFS_funopenWrap(PHYSFS_File *file): wrap a PhysicsFSfileinto a standard C FILE.FILE *PHYSFS_funopenWrite(const char *filename): opens a PhysicsFSfilefor writing and wrap it into a standard C FILE.FILE *PHYSFS_funopenAppend(const char *filename): opens a PhysicsFSfilefor appending and wrap it into a standard C FILE.FILE *PHYSFS_funopenRead(const char *filename): opens a PhysicsFSfilefor reading and wrap it into a standard C FILE.
add_subdirectory(path/to/physfs-funopen)
target_link_libraries(my_awesome_target physfs_funopen)