From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:NPDM" |
|---|
| claim | "The NPDM META header is 0x80 bytes: magic 'META', ACID signature key generation, flags byte at 0xC (mmu flags), main thread priority at 0xE, default core at 0xF, system resource size at 0x14, version, main thread stack size, a 0x20-byte name area at 0x20 (name plus product code), and offset/size pairs for ACI0 and ACID at 0x70." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:NPDM" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "NpdmHeader" |
|---|
| size | "0x80" |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "Magic ('META' 0x4154454D)" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "SignatureKeyGeneration" |
|---|
|
| offset | "0xC" |
|---|
| size | 1 |
|---|
| type | "u8" |
|---|
| name | "MmuFlags" |
|---|
|
| offset | "0xE" |
|---|
| size | 1 |
|---|
| type | "u8" |
|---|
| name | "MainThreadPriority" |
|---|
|
| offset | "0xF" |
|---|
| size | 1 |
|---|
| type | "u8" |
|---|
| name | "DefaultCpuId" |
|---|
|
| offset | "0x14" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "SystemResourceSize" |
|---|
|
| offset | "0x18" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "Version" |
|---|
|
| offset | "0x1C" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "MainThreadStackSize" |
|---|
|
| offset | "0x20" |
|---|
| size | 16 |
|---|
| type | "char[0x10]" |
|---|
| name | "Name" |
|---|
|
| offset | "0x30" |
|---|
| size | 16 |
|---|
| type | "char[0x10]" |
|---|
| name | "ProductCode" |
|---|
|
| offset | "0x70" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "Aci0Offset" |
|---|
|
| offset | "0x74" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "Aci0Size" |
|---|
|
| offset | "0x78" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "AcidOffset" |
|---|
|
| offset | "0x7C" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "AcidSize" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "MAGIC_META/ACID/ACI0 and the NpdmHeader struct; offsets computed from the member sizes. hactool npdm.h lines 110-126 (npdm_t) has the same layout with a 0x50-byte title_name at 0x20 and the aci0/acid pairs at 0x70." |
|---|
| repo | "switchbrew/switch-tools" |
|---|
| commit | "22756068dd0ed6ff9734c59cb4f99ebd3f62555b" |
|---|
| path | "src/npdmtool.c" |
|---|
| lines | "15-17, 77-96" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "META header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T01:20:25.561Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T07:51:54.517Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read struct NpdmHeader in switch-tools 22756068dd0e npdmtool.c: Magic 0, SignatureKeyGeneration 4, pad 8, MmuFlags 0xC, pad 0xD, MainThreadPriority 0xE, DefaultCpuId 0xF, pad 0x10, SystemResourceSize 0x14, Version 0x18, MainThreadStackSize 0x1C, Name 0x20, ProductCode 0x30, 0x30 bytes pad to 0x70, Aci0 0x70/0x74, Acid 0x78/0x7C: total 0x80." |
|---|
|
|
|---|