PhysicsFS 介绍
PhysicsFS 是一个对各种压缩文件的访问提供了一个统一的抽象接口。
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.
PhysicsFS 官网
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。