NCA: Difference between revisions

BKTR doc
Line 361: Line 361:


== BKTR ==
== BKTR ==
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 423: Line 424:
! Description
! Description
|-
|-
| 0x0
| 0x0 || 0x4 || Padding/Unused?
| 0x4004
|-
| Padding/Unused?
| 0x4 || 0x4 || Number of Buckets
|-
| 0x8 || 0x8 || Total Size of the Virtual RomFS Image
|-
| 0x10 || 0x3FF0 || Base Virtual Offset for each Bucket (u64s, padded with 0s until end)
|-
| 0x4000 || 0x4000*X || Relocation Buckets
|}
 
Where relocation buckets are as follows:
 
{| class="wikitable"
|-
! Start
! Length
! Description
|-
| 0x0 || 0x4 || Padding/Unused?
|-
|-
| 0x4004 || 0x4 || Number of Entries
| 0x4 || 0x4 || Number of Entries
|-
|-
| 0x4008 || 0x8 || Patched RomFS Size
| 0x8 || 0x8 || End offset for this Bucket
|-
|-
| 0x4010 || 0x14*X || Relocation Entries
| 0x10 || 0x3FF0 || Relocation Entries
|}
|}


Line 457: Line 475:
! Description
! Description
|-
|-
| 0x0
| 0x0 || 0x4 || Padding/Unused?
| 0x4004
|-
| Padding/Unused?
| 0x4 || 0x4 || Number of Buckets
|-
| 0x8 || 0x8 || Total Size of the Physical Patch Image
|-
| 0x10 || 0x3FF0 || Base Physical Offset for each Bucket (u64s, padded with 0s until end)
|-
| 0x4000 || 0x4000*X || Subsection Buckets
|}
 
 
Where subsection buckets are as follows:
 
{| class="wikitable"
|-
! Start
! Length
! Description
|-
| 0x0 || 0x4 || Padding/Unused?
|-
|-
| 0x4004 || 0x4 || Number of Entries
| 0x4 || 0x4 || Number of Entries
|-
|-
| 0x4008 || 0x8 || Patch RomFS Size - BKTR entries
| 0x8 || 0x8 || End offset for this Bucket
|-
|-
| 0x4010 || 0x10*X || Subsection Entries
| 0x10 || 0x3FF0 || Subsection Entries
|}
|}