Defines | |
#define | VF_AUTO -2 |
Functions | |
int | oslInitVfsFile () |
void | oslSetDefaultVirtualFileSource (int source) |
Variables | |
int | VF_MEMORY |
int | VF_FILE |
#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.
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.
source | Can be VF_FILE, VF_MEMORY or any virtual file device registered by you. |
int VF_MEMORY |
Read and write from memory. Automatically registered when initializing OSLib.
int VF_FILE |
Read and write from a file.