43#define MC_TYPE_PSX sceMcTypePS1
44#define MC_TYPE_PS2 sceMcTypePS2
45#define MC_TYPE_POCKET sceMcTypePDA
46#define MC_TYPE_NONE sceMcTypeNoCard
49#define MC_UNFORMATTED 0
52#define MC_ATTR_READABLE sceMcFileAttrReadable
53#define MC_ATTR_WRITEABLE sceMcFileAttrWriteable
54#define MC_ATTR_EXECUTABLE sceMcFileAttrExecutable
55#define MC_ATTR_PROTECTED sceMcFileAttrDupProhibit
56#define MC_ATTR_FILE sceMcFileAttrFile
57#define MC_ATTR_SUBDIR sceMcFileAttrSubdir
59#define MC_ATTR_OBJECT (sceMcFileAttrFile|sceMcFileAttrSubdir)
60#define MC_ATTR_CLOSED sceMcFileAttrClosed
61#define MC_ATTR_PDAEXEC sceMcFileAttrPDAExec
62#define MC_ATTR_PSX sceMcFileAttrPS1
64#define MC_ATTR_HIDDEN sceMcFileAttrHidden
86 MC_FUNC_ERASE_BLOCK = 0x5A,
98 MCICON_TYPE_SAVED_DATA = 0,
99 MCICON_TYPE_SOFTWARE_PS2,
100 MCICON_TYPE_SOFTWARE_PKT,
101 MCICON_TYPE_SETTINGS_DATA,
102 MCICON_TYPE_SYSTEM_DRIVER
105typedef int iconIVECTOR[4];
106typedef float iconFVECTOR[4];
141 sceMcStDateTime _Create;
142 sceMcStDateTime _Modify;
148 unsigned char EntryName[32];
155 unsigned char unknown1;
172 unsigned char unknown2;
191 unsigned short unknown3;
192 unsigned unknown4[2];
211extern int mcInit(
int type);
226extern int mcGetInfo(
int port,
int slot,
int* type,
int* free,
int* format);
238extern int mcOpen(
int port,
int slot,
const char *name,
int mode);
258extern int mcSeek(
int fd,
int offset,
int origin);
270extern int mcRead(
int fd,
void *buffer,
int size);
281extern int mcWrite(
int fd,
const void *buffer,
int size);
301extern int mcMkDir(
int port,
int slot,
const char* name);
314extern int mcChdir(
int port,
int slot,
const char* newDir,
char* currentDir);
329extern int mcGetDir(
int port,
int slot,
const char *name,
unsigned mode,
int maxent, sceMcTblGetDir* table);
342extern int mcSetFileInfo(
int port,
int slot,
const char* name,
const sceMcTblGetDir* info,
unsigned flags);
353extern int mcDelete(
int port,
int slot,
const char *name);
363extern int mcFormat(
int port,
int slot);
384extern int mcGetEntSpace(
int port,
int slot,
const char* path);
397extern int mcRename(
int port,
int slot,
const char* oldName,
const char* newName);
410extern int mcEraseBlock(
int port,
int slot,
int block,
int mode);
423extern int mcReadPage(
int port,
int slot,
unsigned int page,
void *buffer);
436extern int mcWritePage(
int port,
int slot,
int page,
const void *buffer);
456extern int mcSync(
int mode,
int *cmd,
int *result);
483extern int xfromGetInfo(
int port,
int slot,
int* type,
int* free,
int* format);
495extern int xfromOpen(
int port,
int slot,
const char *name,
int mode);
515extern int xfromSeek(
int fd,
int offset,
int origin);
527extern int xfromRead(
int fd,
void *buffer,
int size);
538extern int xfromWrite(
int fd,
const void *buffer,
int size);
558extern int xfromMkDir(
int port,
int slot,
const char* name);
571extern int xfromChdir(
int port,
int slot,
const char* newDir,
char* currentDir);
586extern int xfromGetDir(
int port,
int slot,
const char *name,
unsigned mode,
int maxent, sceMcTblGetDir* table);
599extern int xfromSetFileInfo(
int port,
int slot,
const char* name,
const sceMcTblGetDir* info,
unsigned flags);
610extern int xfromDelete(
int port,
int slot,
const char *name);
653extern int xfromRename(
int port,
int slot,
const char* oldName,
const char* newName);
679extern int xfromReadPage(
int port,
int slot,
unsigned int page,
void *buffer);
692extern int xfromWritePage(
int port,
int slot,
int page,
const void *buffer);
711extern int xfromSync(
int mode,
int *cmd,
int *result);
int mcGetEntSpace(int port, int slot, const char *path)
int xfromWrite(int fd, const void *buffer, int size)
int mcUnformat(int port, int slot)
int xfromMkDir(int port, int slot, const char *name)
int mcSeek(int fd, int offset, int origin)
int xfromChangeThreadPriority(int level)
int mcRead(int fd, void *buffer, int size)
int xfromSync(int mode, int *cmd, int *result)
int mcMkDir(int port, int slot, const char *name)
int xfromSetFileInfo(int port, int slot, const char *name, const sceMcTblGetDir *info, unsigned flags)
int mcWritePage(int port, int slot, int page, const void *buffer)
int mcEraseBlock(int port, int slot, int block, int mode)
int xfromDelete(int port, int slot, const char *name)
int mcOpen(int port, int slot, const char *name, int mode)
int mcRename(int port, int slot, const char *oldName, const char *newName)
int mcChdir(int port, int slot, const char *newDir, char *currentDir)
int mcSetFileInfo(int port, int slot, const char *name, const sceMcTblGetDir *info, unsigned flags)
int mcReadPage(int port, int slot, unsigned int page, void *buffer)
int xfromRename(int port, int slot, const char *oldName, const char *newName)
int mcGetDir(int port, int slot, const char *name, unsigned mode, int maxent, sceMcTblGetDir *table)
int xfromGetInfo(int port, int slot, int *type, int *free, int *format)
int xfromGetEntSpace(int port, int slot, const char *path)
int xfromSeek(int fd, int offset, int origin)
int mcGetInfo(int port, int slot, int *type, int *free, int *format)
int xfromWritePage(int port, int slot, int page, const void *buffer)
int xfromChdir(int port, int slot, const char *newDir, char *currentDir)
int mcDelete(int port, int slot, const char *name)
int xfromEraseBlock(int port, int slot, int block, int mode)
int mcFormat(int port, int slot)
int xfromFormat(int port, int slot)
int xfromUnformat(int port, int slot)
int mcWrite(int fd, const void *buffer, int size)
int xfromReadPage(int port, int slot, unsigned int page, void *buffer)
int mcChangeThreadPriority(int level)
int mcSync(int mode, int *cmd, int *result)
int xfromGetDir(int port, int slot, const char *name, unsigned mode, int maxent, sceMcTblGetDir *table)
int xfromRead(int fd, void *buffer, int size)
int xfromOpen(int port, int slot, const char *name, int mode)
unsigned char unknown3[512]