Darkplaces virtual file system
From Blood Wiki
(Difference between revisions)
Line 5: | Line 5: | ||
* opaque access to separate gamedir storing all writeable files (My Documents/My Games) | * opaque access to separate gamedir storing all writeable files (My Documents/My Games) | ||
* access files in archives just like they were stored on HDD | * access files in archives just like they were stored on HDD | ||
− | * mod support (mods can override files, | + | * mod support (mods can override files, add new files) |
* safety (gamecode cannot damage game files) | * safety (gamecode cannot damage game files) | ||
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, add new 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