From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:NCCH container" |
|---|
| claim | "ctrtool's NCCH enums: format version 0 CFA, 1 prototype CXI, 2 CXI; platform 0 CTR, 1 SNAKE (New 3DS); content type 0-5 (application, system update, manual, child, trial, extended system update); other-flag bits 0 fixed key, 1 no RomFS mount, 2 no encryption, 5 seeded key Y, 6 manual disclosure; flags[5] splits into a 2-bit form type and a 6-bit content type." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "NCCH common header, as ctrtool declares it" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "NcchCommonHeader enums" |
|---|
| underlying_type | "int" |
|---|
| complete | true |
|---|
| values | | FormatVersion 0 | "CFA" |
|---|
| FormatVersion 1 | "CXI_PROTOTYPE" |
|---|
| FormatVersion 2 | "CXI" |
|---|
| ContentPlatform 0 | "CTR" |
|---|
| ContentPlatform 1 | "SNAKE" |
|---|
| FormType 0 | "Unassigned (invalid)" |
|---|
| FormType 1 | "SimpleContent (CFA)" |
|---|
| FormType 2 | "ExecutableWithoutRomFS (CXI, ExeFS only)" |
|---|
| FormType 3 | "Executable (CXI, ExeFS and RomFS)" |
|---|
| ContentType 0 | "Application" |
|---|
| ContentType 1 | "SystemUpdate (CTR update)" |
|---|
| ContentType 2 | "Manual" |
|---|
| ContentType 3 | "Child" |
|---|
| ContentType 4 | "Trial" |
|---|
| ContentType 5 | "ExtendedSystemUpdate (SNAKE update)" |
|---|
| OtherFlag bit 0 | "FixedAesKey" |
|---|
| OtherFlag bit 1 | "NoMountRomFS" |
|---|
| OtherFlag bit 2 | "NoEncryption" |
|---|
| OtherFlag bit 5 | "SeededAesKeyY" |
|---|
| OtherFlag bit 6 | "ManualDisclosure" |
|---|
| FlagIndex 3 | "SecurityVersion" |
|---|
| FlagIndex 4 | "ContentPlatform" |
|---|
| FlagIndex 5 | "ContentTypeFlag" |
|---|
| FlagIndex 6 | "BlockSizeLog (block size = 1 << (n + 9))" |
|---|
| FlagIndex 7 | "OtherFlag" |
|---|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Enums of NcchCommonHeader; ContentTypeFlag bitfield form_type:2 then content_type:6 (C++ bitfield order, so form type is the low two bits on little-endian ABIs; not checked). format_version is the u16 at header+0x12 (0x112 in the file); the header has an additional seed_checksum u32 at +0x14 (0x114). Other-flag bit 3, 4, 7 not named." |
|---|
| repo | "https://github.com/3DSGuy/Project_CTR" |
|---|
| commit | "d52c2b0e788c2d085763d7c5dcc4b2edd9ffb7d8" |
|---|
| path | "ctrtool/deps/libnintendo-n3ds/include/ntd/n3ds/ncch.h" |
|---|
| lines | "10-85" |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "Enums (ctrtool)" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T12:39:13.215Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T13:05:39.768Z" |
|---|
| summary | "Read ncch.h 8-90: all listed values match; the FlagIndex enum (SecurityVersion 3, ContentPlatform 4, ContentTypeFlag 5, BlockSizeLog 6, OtherFlag 7) was missing, added so the flags[] indices are…" |
|---|
| changed | |
|---|
|
|
|---|