From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:PS2 memory card image" |
|---|
| claim | "The PS2 memory card superblock at offset 0 is a packed structure: 28-byte magic, 12-byte version text, page_len u16 at 0x28, pages_per_cluster u16 at 0x2A, pages_per_block u16 at 0x2C, clusters_per_card u32 at 0x30, alloc_offset 0x34, alloc_end 0x38, rootdir_cluster 0x3C, two backup blocks 0x40 and 0x44, ifc_list[32] at 0x50, bad_block_list[32] at 0xD0, card_type u8 at 0x150, card_flags u8 at 0x151." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PS2 memory card image" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "Ps2McSuperblock" |
|---|
| size_min | "0x152" |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 28 |
|---|
| type | "char[28]" |
|---|
| name | "magic" |
|---|
|
| offset | "0x1C" |
|---|
| size | 12 |
|---|
| type | "char[12]" |
|---|
| name | "version" |
|---|
|
| offset | "0x28" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "page_len" |
|---|
|
| offset | "0x2A" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "pages_per_cluster" |
|---|
|
| offset | "0x2C" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "pages_per_block" |
|---|
|
| offset | "0x2E" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "unused" |
|---|
|
| offset | "0x30" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "clusters_per_card" |
|---|
|
| offset | "0x34" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "alloc_offset" |
|---|
|
| offset | "0x38" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "alloc_end" |
|---|
|
| offset | "0x3C" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "rootdir_cluster" |
|---|
|
| offset | "0x40" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "backup_block1" |
|---|
|
| offset | "0x44" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "backup_block2" |
|---|
|
| offset | "0x48" |
|---|
| size | 8 |
|---|
| type | "uint64_t" |
|---|
| name | "padding" |
|---|
|
| offset | "0x50" |
|---|
| size | 128 |
|---|
| type | "uint32_t[32]" |
|---|
| name | "ifc_list" |
|---|
|
| offset | "0xD0" |
|---|
| size | 128 |
|---|
| type | "uint32_t[32]" |
|---|
| name | "bad_block_list" |
|---|
|
| offset | "0x150" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "card_type" |
|---|
|
| offset | "0x151" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "card_flags" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct superblock with offset comments, read at this commit" |
|---|
| repo | "PCSX2/pcsx2" |
|---|
| commit | "091ab68708a555198d80a7216965481c7ddd0d98" |
|---|
| path | "pcsx2/SIO/Memcard/MemoryCardFolder.h" |
|---|
| lines | "19-38" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Superblock" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T02:07:59.278Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T07:12:55.113Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read PCSX2 MemoryCardFolder.h struct superblock (pack 1) at the cited commit: offset comments and sizes match through card_flags at 0x151, ifc_list/bad_block_list 32 x u32." |
|---|
|
|
|---|