Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
vfs_lookup.cpp File Reference
Include dependency graph for vfs_lookup.cpp:

Functions

static Status CreateDirectory (const OsPath &path)
 
Status vfs_Lookup (const VfsPath &pathname, VfsDirectory *startDirectory, VfsDirectory *&directory, VfsFile **pfile, size_t flags)
 Resolve a pathname. More...
 

Function Documentation

◆ CreateDirectory()

static Status CreateDirectory ( const OsPath path)
static

◆ vfs_Lookup()

Status vfs_Lookup ( const VfsPath pathname,
VfsDirectory startDirectory,
VfsDirectory *&  directory,
VfsFile **  pfile,
size_t  flags = 0 
)

Resolve a pathname.

Parameters
pathname
startDirectoryVfsStartDirectory.
directoryis set to the last directory component that is encountered.
pfileFile is set to 0 if there is no name component, otherwise the corresponding file.
flags
See also
VfsLookupFlags.
Returns
Status (INFO::OK if all components in pathname exist).

to allow noiseless file-existence queries, this does not raise warnings.