RetroArch
Macros | Functions
fs_utils.c File Reference
#include <malloc.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <wiiu/fs.h>
Include dependency graph for fs_utils.c:

Macros

#define FS_MAX_LOCALPATH_SIZE   511
 
#define FS_MAX_MOUNTPATH_SIZE   128
 
#define FS_MAX_FULLPATH_SIZE   (FS_MAX_LOCALPATH_SIZE + FS_MAX_MOUNTPATH_SIZE)
 
#define FS_MAX_ARGPATH_SIZE   FS_MAX_FULLPATH_SIZE
 
#define FS_STATUS_OK   0
 
#define FS_RET_UNSUPPORTED_CMD   0x0400
 
#define FS_RET_NO_ERROR   0x0000
 
#define FS_RET_ALL_ERROR   (unsigned int)(-1)
 
#define FS_STAT_FLAG_IS_DIRECTORY   0x80000000
 
#define FS_MAX_ENTNAME_SIZE   256
 
#define FS_SOURCETYPE_EXTERNAL   0
 
#define FS_SOURCETYPE_HFIO   1
 
#define FS_SOURCETYPE_HFIO   1
 
#define FS_MOUNT_SOURCE_SIZE   0x300
 
#define FS_CLIENT_SIZE   0x1700
 
#define FS_CMD_BLOCK_SIZE   0xA80
 

Functions

int MountFS (void *pClient, void *pCmd, char **mount_path)
 
int UmountFS (void *pClient, void *pCmd, const char *mountPath)
 
int LoadFileToMem (const char *filepath, u8 **inbuffer, u32 *size)
 
int CheckFile (const char *filepath)
 
int CreateSubfolder (const char *fullpath)
 

Macro Definition Documentation

◆ FS_CLIENT_SIZE

#define FS_CLIENT_SIZE   0x1700

◆ FS_CMD_BLOCK_SIZE

#define FS_CMD_BLOCK_SIZE   0xA80

◆ FS_MAX_ARGPATH_SIZE

#define FS_MAX_ARGPATH_SIZE   FS_MAX_FULLPATH_SIZE

◆ FS_MAX_ENTNAME_SIZE

#define FS_MAX_ENTNAME_SIZE   256

◆ FS_MAX_FULLPATH_SIZE

#define FS_MAX_FULLPATH_SIZE   (FS_MAX_LOCALPATH_SIZE + FS_MAX_MOUNTPATH_SIZE)

◆ FS_MAX_LOCALPATH_SIZE

#define FS_MAX_LOCALPATH_SIZE   511

◆ FS_MAX_MOUNTPATH_SIZE

#define FS_MAX_MOUNTPATH_SIZE   128

◆ FS_MOUNT_SOURCE_SIZE

#define FS_MOUNT_SOURCE_SIZE   0x300

◆ FS_RET_ALL_ERROR

#define FS_RET_ALL_ERROR   (unsigned int)(-1)

◆ FS_RET_NO_ERROR

#define FS_RET_NO_ERROR   0x0000

◆ FS_RET_UNSUPPORTED_CMD

#define FS_RET_UNSUPPORTED_CMD   0x0400

◆ FS_SOURCETYPE_EXTERNAL

#define FS_SOURCETYPE_EXTERNAL   0

◆ FS_SOURCETYPE_HFIO [1/2]

#define FS_SOURCETYPE_HFIO   1

◆ FS_SOURCETYPE_HFIO [2/2]

#define FS_SOURCETYPE_HFIO   1

◆ FS_STAT_FLAG_IS_DIRECTORY

#define FS_STAT_FLAG_IS_DIRECTORY   0x80000000

◆ FS_STATUS_OK

#define FS_STATUS_OK   0

Function Documentation

◆ CheckFile()

int CheckFile ( const char *  filepath)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateSubfolder()

int CreateSubfolder ( const char *  fullpath)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadFileToMem()

int LoadFileToMem ( const char *  filepath,
u8 **  inbuffer,
u32 size 
)
Here is the call graph for this function:

◆ MountFS()

int MountFS ( void pClient,
void pCmd,
char **  mount_path 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UmountFS()

int UmountFS ( void pClient,
void pCmd,
const char *  mountPath 
)
Here is the call graph for this function:
Here is the caller graph for this function: