#include <revolution/card.h>
s32 CARDGetSectorSize(s32 chan, u32* size); |
EXI channel number. |
|
Pointer to u32 type to get the size. |
One of the following codes:
CARD_RESULT_FATAL_ERROR
CARD_RESULT_NOCARD
CARD_RESULT_BUSY
CARD_RESULT_READY
Gets the Memory Card sector size in bytes. The CARDCreate and CARDWrite functions require that processing be performed in multiples of the returned sector size. The size returned will be 8, 16, 32, 64, or 128 KB. A game program must support Memory Cards that have a sector size of 8 KB.
Note: Nintendo officially discourages the current development of game programs that support memory cards with sectors that are not 8 KB. A game program should call the CARDProbeEx or CARDGetSectorSize function to verify whether the Memory Card is an 8 KB sector Memory Card before proceeding [as of 5/30/2001].
CARDCreate, CARDCreateAsync, CARDWrite, CARDWriteAsync
03/01/2006 Initial version.