CARDSetStatus

C Specification

#include <revolution/card.h>
  
#define CARD_READ_SIZE      512
s32 CARDSetStatus(s32 chan, s32 fileNo, CARDStat* stat);

Arguments

chan EXI channel number.
fileNo File entry number.
stat Pointer to file status to set.

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

Synchronously sets a file status using a file number. This function does not return until settings have been set.

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).

See Also

Memory Card Functions,
CARDStat

Note: This function is provided for debugging. Do not use in programs.

Revision History

03/01/2006 Initial version.