CARDSetAttributesAsync

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

typedef void (*CARDCallback)( s32 chan, s32 result );

s32 CARDSetAttributesAsync( s32 chan, s32 fileNo, u8 attr, CARDCallback callback );

Arguments

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

Description

Asynchronously 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/CARDCreateAsync function. 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, CARDSetAttributes

Revision History

03/01/2006 Initial version.