SSBM Decomp
Loading...
Searching...
No Matches
CardState Struct Reference

One CARD file containing up to nine logical files. More...

#include <card.h>

Data Fields

u8 * sector_buf
s32 chan
u32 sector_size
CARDFileInfo file_info
s32 file_no
u32 header_size
 Bytes of comment + banner + icons; the 0x30-byte digest follows.
int file_flags [HSD_CARD_MAX_FILES]
int file_sizes [HSD_CARD_MAX_FILES]
u8 * file_data [HSD_CARD_MAX_FILES]
u8 pad_94 [0xDC]
s32 block_ids [64]
 Block id stored in each physical block; negated = stale copy, -0x7FFF = free.
s32 block_seqs [64]
char comment [64]
CardIconInfo icon_info
CARDStat stat
u8 digest [0x30]
s32 num_blocks
 Physical blocks 1..num_blocks each fill a sector; block 0 shares the last header sector.

Detailed Description

One CARD file containing up to nine logical files.

file_idx selects a logical file; file_no is the SDK directory-entry number. Block positions (phys) are relative to this CARD file, not hardware sector addresses.

Field Documentation

◆ sector_buf

u8* CardState::sector_buf

◆ chan

s32 CardState::chan

◆ sector_size

u32 CardState::sector_size

◆ file_info

CARDFileInfo CardState::file_info

◆ file_no

s32 CardState::file_no

◆ header_size

u32 CardState::header_size

Bytes of comment + banner + icons; the 0x30-byte digest follows.

◆ file_flags

int CardState::file_flags[HSD_CARD_MAX_FILES]
Todo
enum, not flags

◆ file_sizes

int CardState::file_sizes[HSD_CARD_MAX_FILES]

◆ file_data

u8* CardState::file_data[HSD_CARD_MAX_FILES]

◆ pad_94

u8 CardState::pad_94[0xDC]

◆ block_ids

s32 CardState::block_ids[64]

Block id stored in each physical block; negated = stale copy, -0x7FFF = free.

◆ block_seqs

s32 CardState::block_seqs[64]

◆ comment

char CardState::comment[64]

◆ icon_info

CardIconInfo CardState::icon_info

◆ stat

CARDStat CardState::stat

◆ digest

u8 CardState::digest[0x30]

◆ num_blocks

s32 CardState::num_blocks

Physical blocks 1..num_blocks each fill a sector; block 0 shares the last header sector.


The documentation for this struct was generated from the following file:
  • src/sysdolphin/baselib/card.h