Filesystem services: Difference between revisions

TimmSkiller (talk | contribs)
TimmSkiller (talk | contribs)
Line 1,449: Line 1,449:


If no patch title exists, the base title is considered to be the patch title, i.e. turning all "patch" accesses into accesses to the base title.
If no patch title exists, the base title is considered to be the patch title, i.e. turning all "patch" accesses into accesses to the base title.
==== Program Access Type ====
{| class="wikitable" border="1"
|-
! Value !! Description !! Accesses
|-
| 0 || RomFS ("unspecified" [[NCCH#Content_Type|content type]], the default) || Base title
|-
| 1 || <code>exefs:/.code</code> || Patch title
|-
| 2 || System Menu Data (<code>exefs:/icon</code>, <code>exefs:/banner</code>, <code>exefs:/logo</code>) || Base title
|-
| 3 || Save Data (high level, decrypted) || -
|-
| 4 || RomFS (all [[NCCH#Content_Type|content types]]) || Base title
|-
| 5 || RomFS ("unspecified" [[NCCH#Content_Type|content type]], the default) || Patch title
|}


==== Archive Path ====
==== Archive Path ====
Line 1,458: Line 1,476:
|}
|}


==== Program Access Type ====
==== File Path ====
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Value !! Description
! Offset !! Size !! Description
|-
|-
| 0 || RomFS of base title ("unspecified" [[NCCH#Content_Type|content type]], the default)
| 0x0 || 0x4 || [[Filesystem_services#Program_Access_Type|Program Access Type]]
|-
|-
| 1 || <code>exefs:/.code</code> of the patch title
| 0x4 || 0x8 || Dynamic data depending on [[Filesystem_services#Program_Access_Type|Program Access Type]]:
{| class="wikitable" border="1"
|-
|-
| 2 || System Menu Data (<code>exefs:/icon</code>, <code>exefs:/banner</code>, <code>exefs:/logo</code>)
! ExeFS files (System Menu Data, etc.) !! RomFS of base title (all [[NCCH#Content_Type|content types]])
|-
|
{| class="wikitable" border="1"
| 8-character ExeFS filename
|}
|
{| class="wikitable" border="1"
|-
|-
| 3 || Save Data (high level, decrypted)
! Offset !! Size !! Description
|-
|-
| 4 || RomFS of base title (all [[NCCH#Content_Type|content types]])
| 0x0 || 0x4 || u32, content index of target content
|-
|-
| 5 || RomFS of patch (update) title
| 0x4 || 0x4 || padding
|}
|}
|}
|}