Darkplaces virtual file system

From Blood Wiki
(Difference between revisions)
Jump to: navigation, search
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, and its own 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

  1. First gamedir is processed
    1. Archives processed sequentally (by alphabetical order), files with same name gets overlapped
    2. Files with empty contents overlapping other files, makes them 'deleted' to the file system
    3. Real files stored in gamedir is processed and overlap files in archives
  2. Next gamedir is processed
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox