Virtual file sources
[Virtual Files]


Defines

#define VF_AUTO   -2

Functions

int oslInitVfsFile ()
void oslSetDefaultVirtualFileSource (int source)

Variables

int VF_MEMORY
int VF_FILE

Detailed Description

There are two virtual file sources available by default: memory and file.

Define Documentation

#define VF_AUTO   -2

Auto select source. Uses the current file list to find whether the file name exists in it. If it's not found, it uses the currently active source.


Function Documentation

int oslInitVfsFile (  ) 

Initializes the file system. You do not need to call it by yourself as it's done automatically by OSLib.

void oslSetDefaultVirtualFileSource ( int  source  )  [inline]

Sets the default virtual file source (VF_FILE by default). Used if you use VF_AUTO, that is any oslLoad[...]File routine.

OSLib will search in the current file list to find wether the file exists and is of a different type (e.g. VF_MEMORY). If the file is not found, it will treat it with the default type.

Parameters:
source Can be VF_FILE, VF_MEMORY or any virtual file device registered by you.


Variable Documentation

int VF_MEMORY

Read and write from memory. Automatically registered when initializing OSLib.

int VF_FILE

Read and write from a file.


Generated on Wed Feb 24 10:25:35 2010 by  doxygen 1.5.9