CARDSetStatusAsync

C Specification

#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 );

Arguments

chan EXI channel number.
fileNo File entry number.
stat Pointer to file status to set.
callback Callback function to notify about the result.

Return Values

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

Description

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.

See Also

Memory Card Functions,
CARDStat

Revision History

03/01/2006 Initial version.