From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:SMDH" |
|---|
| claim | "The SMDH is magic 'SMDH', u16 version, u16 zero, sixteen 0x200-byte titles (0x40+0x80+0x40 UTF-16 units), a 0x30-byte settings block and 8 zero bytes (0x2040), followed by the 24x24 then the 48x48 RGB565 icon." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "SMDH files as written by smdhtool" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "smdh" |
|---|
| size | "0x36C0" |
|---|
| fields | | offset | "0x00" |
|---|
| size | 4 |
|---|
| type | "char[4]" |
|---|
| name | "magic" |
|---|
| notes | "SMDH" |
|---|
|
| offset | "0x04" |
|---|
| size | 2 |
|---|
| type | "u16" |
|---|
| name | "version" |
|---|
|
| offset | "0x06" |
|---|
| size | 2 |
|---|
| type | "u16" |
|---|
| name | "zero" |
|---|
|
| offset | "0x08" |
|---|
| size | 8192 |
|---|
| type | "smdh_title[16]" |
|---|
| name | "titles" |
|---|
| notes | "each: u16 short_desc[0x40], long_desc[0x80], publisher[0x40]" |
|---|
|
| offset | "0x2008" |
|---|
| size | 16 |
|---|
| type | "u8[16]" |
|---|
| name | "ratings" |
|---|
| notes | "indexed by board: CERO 0, ESRB 1, USK 3, PEGI general 4, PEGI Portugal 6, PEGI BBFC 7, COB 8, GRB 9, CGSRR 10; bit 7 enabled, bit 5 no restriction, bit 6 pending" |
|---|
|
| offset | "0x2018" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "region_lockout" |
|---|
|
| offset | "0x201C" |
|---|
| size | 12 |
|---|
| type | "u8[12]" |
|---|
| name | "matchmaker_id" |
|---|
|
| offset | "0x2028" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "flags" |
|---|
|
| offset | "0x202C" |
|---|
| size | 2 |
|---|
| type | "u16" |
|---|
| name | "eula_ver" |
|---|
|
| offset | "0x202E" |
|---|
| size | 2 |
|---|
| type | "u16" |
|---|
| name | "zero2" |
|---|
|
| offset | "0x2030" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "optimal_bannerframe" |
|---|
|
| offset | "0x2034" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "streetpass_id" |
|---|
|
| offset | "0x2038" |
|---|
| size | 8 |
|---|
| type | "u8[8]" |
|---|
| name | "zero3" |
|---|
|
| offset | "0x2040" |
|---|
| size | 1152 |
|---|
| type | "u16[24*24]" |
|---|
| name | "small_icon" |
|---|
| notes | "RGB565, 8x8 tiles" |
|---|
|
| offset | "0x24C0" |
|---|
| size | 4608 |
|---|
| type | "u16[48*48]" |
|---|
| name | "large_icon" |
|---|
| notes | "RGB565, 8x8 tiles" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "smdh_title, smdh_settings and smdh_header structs; small icon fwrite precedes the large one" |
|---|
| repo | "https://github.com/devkitPro/3dstools" |
|---|
| commit | "718d6f2330dbef9dd5726573392425dcbd451677" |
|---|
| path | "src/smdhtool.cpp" |
|---|
| lines | "28-117,405-406" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T23:55:02.297Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T07:38:51.450Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read smdhtool.cpp 28-117 and 405-406: smdh_title 0x40+0x80+0x40 u16 = 0x200 bytes x 16; smdh_settings (ratings[0x10], region_lockout, matchmaker_id[0xC], flags, eula_ver, zero, optimal_bannerframe, streetpass_id = 0x30); zero2[8]; header = 8 + 0x2000 + 0x30 + 8 = 0x2040; small 24x24 icon is fwritten before the 48x48 one; rating board and flag enums match." |
|---|
|
|
|---|