CNMT: Difference between revisions

No edit summary
Magic (talk | contribs)
No edit summary
Line 2: Line 2:
This is the file that ends in <code>".cnmt.nca"</code> or <code>"meta0.ncd"</code>.
This is the file that ends in <code>".cnmt.nca"</code> or <code>"meta0.ncd"</code>.


It starts with an header:
It starts with a header:
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
Line 11: Line 11:
| 0x0
| 0x0
| 8
| 8
| Patch title id
| Title ID
|-
|-
| 0x8
| 0x8
Line 36: Line 36:
| 14
| 14
|
|
|}
An optional header can follow, depending on the title type.
== Application header ==
{| class="wikitable" border="1"
|-
! Offset
! Size
! Description
|-
| 0x20
| 8
| Patch title ID
|-
| 0x28
| 8
|
|}
== Patch header ==
{| class="wikitable" border="1"
|-
! Offset
! Size
! Description
|-
|-
| 0x20
| 0x20
| 16
| 8
| Original title-id
| Original title ID
|-
| 0x28
| 8
|
|}
 
== Add-on content header ==
{| class="wikitable" border="1"
|-
! Offset
! Size
! Description
|-
| 0x20
| 8
| Application title ID
|-
| 0x28
| 8
|
|}
|}
== Content records ==


Each entry is 0x38 bytes:
Each entry is 0x38 bytes: