#include <revolution/card.h>
#define CARD_READ_SIZE 512
typedef void (*CARDCallback)( s32 chan, s32 result );
s32 CARDSetStatusAsync(s32 chan, s32 fileNo, CARDStat* stat, CARDCallback callback );
|
EXI channel number. |
|
File entry number. |
|
Pointer to file status to set. |
|
Callback function to notify about the result. |
One of the following codes:
CARD_RESULT_FATAL_ERROR
CARD_RESULT_NOCARD
CARD_RESULT_NOFILE
CARD_RESULT_NOPERM
CARD_RESULT_BUSY
CARD_RESULT_IOERROR
CARD_RESULT_READY
Asynchronously sets a file status using a file number.
Note: stat->iconAddr must be set to 0xffffffff or less than CARD_READ_SIZE. At least one icon is required in a game file.
Note: The 64-byte comment data specified by start->commentAddr must not cross the 8-KB boundary of the file (i.e., the comment data must fit into one 8-KB block of the file).
Note: This function is provided for debugging. Do not use in programs.
Memory Card Functions,
CARDStat
03/01/2006 Initial version.