From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:3DSX" |
|---|
| claim | "Azahar loads any 3DSX with the right file magic, but only reads the embedded SMDH or RomFS when header_size equals 0x2C; the RomFS is everything from fs_offset to the end of the file." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "azahar AppLoader_THREEDSX; devkitPro 3dsxtool not re-read for this fact" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "loading, or asking for the icon, title or RomFS of a 3DSX" |
|---|
| effect | "Load3DSXFile reads a full 0x2C-byte header struct unconditionally, then seeks to hdr.header_size before the relocation headers (comment: skip header for future compatibility); it does not compare magic, header_size, version or flags itself. ReadRomFS and ReadIcon (ReadTitle calls ReadIcon) re-read the header and return Error if header_size != 0x2C; then smdh_offset != 0 makes ReadIcon read smdh_size bytes at smdh_offset, and fs_offset != 0 makes the RomFS the range [fs_offset, file size)." |
|---|
| condition | "A 3DSX with the 0x20-byte base header therefore runs but exposes no icon or RomFS to azahar. Relocation loop and segment sizes: see Fact:3DSX/behavior/Relocation tables. Not read: how the RomFS reader parses that range." |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "THREEDSX_Header (packed, 0x2C bytes), Load3DSXFile start, ReadRomFS, ReadIcon" |
|---|
| repo | "https://github.com/azahar-emu/azahar" |
|---|
| commit | "987f18405073960622e1043bb44005989135c6e1" |
|---|
| path | "src/core/loader/3dsx.cpp" |
|---|
| lines | "50-63,101-137,313-348,387-409" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Header size and extended fields in azahar" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T12:40:21.822Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T13:17:07.761Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched src/core/loader/3dsx.cpp at 987f184 and read Load3DSXFile, IdentifyType, Load, ReadRomFS, ReadIcon, ReadTitle whole: header read unconditionally, seek to header_size, ReadRomFS/ReadIcon return Error unless header_size == sizeof(THREEDSX_Header) (0x2C), fs_offset gives [fs_offset, size)." |
|---|
|
|
|---|