Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#include "lib/file/common/real_directory.h"
Go to the source code of this file.
Functions | |
Status | vfs_Attach (VfsDirectory *directory, const PRealDirectory &realDirectory) |
attach a real directory to a VFS directory. More... | |
Status | vfs_Populate (VfsDirectory *directory) |
populate the directory from the attached real directory. More... | |
Status vfs_Attach | ( | VfsDirectory * | directory, |
const PRealDirectory & | realDirectory | ||
) |
attach a real directory to a VFS directory.
when the VFS directory is accessed, it will first be populated from the real directory. (this delays the impact of mounting a large directory, distributing the cost from startup to the first accesses to each subdirectory.)
note: the most recently attached real directory will be used when creating files in the VFS directory.
Status vfs_Populate | ( | VfsDirectory * | directory | ) |
populate the directory from the attached real directory.
adds each real file and subdirectory entry to the VFS directory. the full contents of any archives in the real directory are also added.
has no effect if no directory has been attached since the last populate.