CARDSetAttributes

C Specification

#include <revolution/card.h>

#define CARD_ATTR_PUBLIC        0x04u  // Any program can read the file
#define CARD_ATTR_NO_COPY       0x08u  // IPL cannot copy the file
#define CARD_ATTR_NO_MOVE       0x10u  // IPL cannot move the file

s32 CARDSetAttributes( s32 chan, s32 fileNo, u8 attr );

Arguments

chan EXI channel number.
fileNo File entry number.
attr Attributes 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_READY

Description

Synchronously sets file attributes using a file number.

By default, only the CARD_ATTR_PUBLIC bit is set to a Memory Card file created by the CARDCreate or CARDCreateAsync functions. The CARD_ATTR_PUBLIC must not be cleared by a game program.

A game program can set a CARD_ATTR_NO_COPY bit and/or CARD_ATTR_NO_MOVE bit if required.A game program must not modify any other bits.

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

See Also

Memory Card Functions,
CARDGetAttributes, CARDSetAttributesAsync

Revision History

03/01/2006 Initial version.