![]()
VFile_System
Description: Collection file system interface
Source file: \genesis3d\OpenSource\Source\VFile\ fsvfs.h & FSMEMORY.h & fsdos.h
Functions: RegisterFileSystem, FSVFS_GetAPIs, FSMemory_GetAPIs, FSDos_GetAPIs
Types: SystemAPIs, FinderCreateFN, FinderGetNextFileFN, FinderGetPropertiesFN, FinderDestroyFN, OpenNewSystemFN, UpdateContextFN, OpenFN, DeleteFileFN, RenameFileFN, FileExistsFN, DisperseFN, CloseFN, GetSFN, ReadFN, WriteFN, SeekFN, EOFFN, TellFN, GetPropertiesFN, SizeFN, SetSizeFN, SetAttributesFN, SetTimeFN, SetHintsFN
Addition for Genesis3D v1.6: CloseAPI
![]()
Types:
typedef void * (GENESISCC *geVFile_FinderCreateFN)( geVFile* FileSystem, void * Handle, const char * FileSpec);
typedef geBoolean (GENESISCC *geVFile_FinderGetNextFileFN)( void * Handle);
typedef geBoolean (GENESISCC *geVFile_FinderGetPropertiesFN)( void * Handle, geVFile_Properties* Properties);
typedef void (GENESISCC *geVFile_FinderDestroyFN)( void * Handle);
typedef void * (GENESISCC *geVFile_OpenNewSystemFN)( geVFile* FS, const char * Name, void * Context, unsigned int
OpenModeFlags);
typedef geBoolean (GENESISCC *geVFile_UpdateContextFN)( geVFile* FS, void * Handle, void * Context, int ContextSize);
typedef void * (GENESISCC *geVFile_OpenFN)( geVFile* FS, void * Handle, const char * Name, void * Context, unsigned int OpenModeFlags);
typedef geBoolean (GENESISCC *geVFile_DeleteFileFN)( geVFile* FS, void * Handle, const char * FileName);
typedef geBoolean (GENESISCC *geVFile_RenameFileFN)( geVFile* FS, void * Handle, const char * FileName, const char * NewFileName);
typedef geBoolean (GENESISCC *geVFile_FileExistsFN)( geVFile* FS, void * Handle, const char * FileName);
typedef geBoolean (GENESISCC *geVFile_DisperseFN)( geVFile* FS, void * Handle, const char * Directory, geBoolean Recursive);
typedef void (GENESISCC *geVFile_CloseFN)( void * Handle);
typedef geBoolean (GENESISCC *geVFile_GetSFN)( void * Handle, void * Buff, int MaxSize);
typedef geBoolean (GENESISCC *geVFile_ReadFN)( void * Handle, void * Buff, int Count);
typedef geBoolean (GENESISCC *geVFile_WriteFN)( void * Handle, const void * Buff, int Count);
typedef geBoolean (GENESISCC *geVFile_SeekFN)( void * Handle, int Where, geVFile_Whence Whence);
typedef geBoolean (GENESISCC *geVFile_EOFFN)( const void * Handle);
typedef geBoolean (GENESISCC *geVFile_TellFN)( const void * Handle, long* Position);
typedef geBoolean (GENESISCC *geVFile_GetPropertiesFN)( const void * Handle, geVFile_Properties* Properties);
typedef geBoolean (GENESISCC *geVFile_SizeFN)( const void * Handle, long* Size);
typedef geBoolean (GENESISCC *geVFile_SetSizeFN)( void * Handle, long Size);
typedef geBoolean (GENESISCC *geVFile_SetAttributesFN)( void * Handle, geVFile_Attributes Attributes);
typedef geBoolean (GENESISCC *geVFile_SetTimeFN)( void * Handle, const geVFile_Time* Time);
typedef geBoolean (GENESISCC *geVFile_SetHintsFN)( void * Handle, const geVFile_Hints* Hints);
![]()
Functions:
![]()
geBoolean GENESISCC VFile_RegisterFileSystem(const geVFile_SystemAPIs* APIs, geVFile_TypeIdentifier* Type);
![]()
const geVFile_SystemAPIs* GENESISCC FSVFS_GetAPIs(void);
Note: This is the primary function to use
![]()
const geVFile_SystemAPIs* GENESISCC FSMemory_GetAPIs(void);
Note: This is located in a separate file (fsmemory.h) but it depends of stuff here, so I am combining with file here
![]()
const geVFile_SystemAPIs* GENESISCC FSDos_GetAPIs(void);
Note: This is located in a separate file (fsdos.h) but it depends of stuff here, so I am combining with file here
![]()
GENESISAPI void GENESISCC geVFile_CloseAPI (void);
Note: this is found in ...\VFile\vfile.h
Closes and frees API's
![]()