#include <revolution/vf.h>
typedef s32 VFErr;
VFErr VFMountDriveNANDFlash( const char* drive, const char* sysFileName );
VFErr VFMountDriveNANDFlashW( const VFWchar* drive, const char* sysFileName );
VFErr VFMountDriveNANDFlashCache( const char* drive, const char* sysFileName, void* cacheAddress, u32 cacheSize );
VFErr VFMountDriveNANDFlashCacheW( const VFWchar* drive, const char* sysFileName, void* cacheAddress, u32 cacheSize );
VFErr VFMountDriveRam( const char* drive, void* memory );
VFErr VFMountDriveRamW( const VFWchar* drive, void* memory );
VFErr VFMountDriveRamCache( const char* drive, void* memory, void* cacheAddress, u32 cacheSize );
VFErr VFMountDriveRamCacheW( const VFWchar* drive, void* memory, void* cacheAddress, u32 cacheSize );
VFErr VFMountDriveDVD( const char* drive, const char* sysFileName );
VFErr VFMountDriveDVDW( const VFWchar* drive, const char* sysFileName );
VFErr VFMountDriveDVDCache( const char* drive, const char* sysFileName, void* cacheAddress, u32 cacheSize );
VFErr VFMountDriveDVDCacheW( const VFWchar* drive, const char* sysFileName, void* cacheAddress, u32 cacheSize );
drive |
The name of the drive to be mounted. Specify a single letter. |
sysFileName |
The name of the VFF file name to be mounted. The file name must use 8.3 format. |
memory |
Address of the RAM to be mounted. |
cacheAddress |
Cache address (specify NULL if not needed). |
cacheSize |
Cache size (use a value equal to VF_CACHE_SIZE_MIN or greater, when used). |
When successful, 0.
When failed, a VFErr other than 0.
Mounts the specified drive and enables it for use. VF_ERR_ALREADY_MOUNTED_DRV_NAME is returned if the specified drive name is already in use. Drive letters from A to Z may be specified for the drive name. Calls should be differentiated by the type of media to be used. As VFAttachDriveXXX() and VFActivateDriveXXX() are called internally, they are not needed when using VFMountDrivexxx().
When a .vff file is used for the first time, be sure to format it with VFFormatDrive() after calling VFMountDriveXXX().
Returns VF_ERR_VFF_FILE_FORMAT when the creation of a selected .vff file fails.
Delete and recreate the .vff file.
Within the VF, a cache of VF_CACHE_SIZE_MIN (10 KB) is set for each drive.
To increase speed, set cacheAddress and cacheSize to use a cache of a specified size.
This dramatically increases the speed for file creation in directories with many entries.
The set cache buffers are enabled until either VFDetachDrive() or VFUnmountDrive() is called.
Also be aware that cache buffers cannot be shared between drives.
VFUnmountDrive, VFAttachDrive, VFActivateDrive, VFFormatDrive
2006/10/31 Release.
CONFIDENTIAL