#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 );
|
EXI channel number. |
|
File entry number. |
|
Attributes to set. |
One of the following codes:
CARD_RESULT_FATAL_ERROR
CARD_RESULT_NOCARD
CARD_RESULT_NOFILE
CARD_RESULT_NOPERM
CARD_RESULT_BUSY
CARD_RESULT_READY
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.
Memory Card Functions,
CARDGetAttributes, CARDSetAttributesAsync
03/01/2006 Initial version.