Darkplaces virtual file system
From Blood Wiki
Darkplaces virtual file system is file table that combines real file system and files stored in game archives.
The goals it provides:
- opaque access to separate gamedir storing all writeable files (My Documents/My Games)
- access files in archives just like they were stored on HDD
- mod support (mods can override files, and its own files)
- safety (gamecode cannot damage game files)
How file table is maked =
- First gamedir is processed
- Archives processed sequentally (by alphabetical order), files with same name gets overlapped
- Files with empty contents overlapping other files, makes them 'deleted' to the file system
- Real files stored in gamedir is processed and overlap files in archives
- Next gamedir is processed