NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_vf.h
1#ifndef RVL_SDK_VF_D_VF_H
2#define RVL_SDK_VF_D_VF_H
3#include <types.h>
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8typedef void* VFFile;
9
10typedef enum {
11 VF_OK = 0x0000,
12 VF_ERROR_0002 = 0x0002,
13 VF_ERROR_0005 = 0x0005,
14 VF_ERROR_B001 = 0xB001,
15} VFError;
16
17// Sync and async?
18typedef enum { VF_SYNC_MODE_0, VF_SYNC_MODE_1 } VFSyncMode;
19
20s32 VFIsAvailable(void);
21s32 VFMountDriveNANDFlashEx(const char* i_drive, const char* i_sys_file_name_p);
22s32 VFUnmountDrive(const char* i_drive);
23VFFile VFOpenFile(const char* i_path_p, const char* i_mode, u32 i_attr);
24s32 VFCloseFile(VFFile i_file_p);
25s32 VFSeekFile(VFFile i_file_p, s32 i_offset, s32 i_origin);
26s32 VFReadFile(VFFile i_file_p, void* o_buf_p, u32 i_size, u32* o_read_size_p);
27s32 VFWriteFile(VFFile i_file_p, const void* i_buf_p, u32 i_size);
28s32 VFDeleteFile(const char* i_path_p);
29s32 VFGetFileSizeByFd(VFFile i_file_p);
30s32 VFGetLastError(void);
31s32 VFGetDriveFreeSize(const char* i_drive);
32s32 VFGetLastDeviceError(const char* i_drive);
33s32 VFSetSyncMode(const char* i_drive, u32 i_mode);
34
35#ifdef __cplusplus
36}
37#endif
38#endif