physfs
Abstraction layer for filesystem and archive access
PhysicsFS is a library to provide abstract access to various archives. It is intended for use in video games, and the design was somewhat inspired by Quake 3's file subsystem. The programmer defines a "write directory" on the physical filesystem. No file writing done through the PhysicsFS API can leave that write directory, for security. For example, an embedded scripting language cannot write outside of this path if it uses PhysFS for all of its I/O, which means that untrusted scripts can run more safely. Symbolic links can be disabled as well, for added safety. For file reading, the programmer lists directories and archives that form a "search path". Once the search path is defined, it becomes a single, transparent hierarchical filesystem. This makes for easy access to ZIP files in the same way as you access a file directly on the disk, and it makes it easy to ship a new archive that will override a previous archive on a per-file basis. Finally, PhysicsFS gives you platform-abstracted means to determine if CD-ROMs are available, the user's home directory, where in the real filesystem your program is running, etc.
homepage ↗ github: icculus/physfs
Available in
| Overlay | Newest | Ebuilds | Last activity | |
|---|---|---|---|---|
| gentoo gitweb ↗ | 3.2.0 | 2 | 13 h | details › |
Versions & arches
Use flags of 3.2.0
- 7zip Enable 7zip/lzma archive support
- doc Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
- grp Enable Build Engine GRP archive support
- hog Enable Descent I/II HOG archive support
- iso Enable ISO9660 file support
- mvl Enable Descent I/II MVL archive support
- qpak Enable Quake I/II QPAK archive support
- slb Enable Independence War SLB archive support
- static-libs Build static versions of dynamic libraries as well
- vdf Enable Gothic/Gothic II VDF archive support
- wad Enable Doom WAD archive support
- +zip Enable support for ZIP archives
8 expansion flags (python targets, ABIs, cpu flags…)
- abi_x86_32
- abi_x86_64
- abi_x86_x32
- abi_mips_n32
- abi_mips_n64
- abi_mips_o32
- abi_s390_32
- abi_s390_64