There are two virtual file sources available by default: memory and file.
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.
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. |
Read and write from memory. Automatically registered when initializing OSLib.
Read and write from a file.