Darkplaces virtual file system
From Blood Wiki
(Difference between revisions)
(Created page with "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 st...") |
|||
Line 8: | Line 8: | ||
* safety (gamecode cannot damage game files) | * safety (gamecode cannot damage game files) | ||
− | = How file table is maked == | + | == How file table is maked == |
# First gamedir is processed | # First gamedir is processed |
Revision as of 18:19, 12 July 2012
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