XCI: Difference between revisions

Basic description of HFS0 table (details incoming, also see https://gist.github.com/SciresM/46bade173227e24e1fef532a73a320a7
HFS0 File Entry struct
Line 143: Line 143:
| Z
| Z
| Raw File Data
| Raw File Data
|}
Where File Entry Table consists of Number of Files FileEntries:
{| class="wikitable" border="1"
|-
! Offset
! Size
! Description
|-
| 0x0
| 0x8
| Offset of file in Data
|-
| 0x8
| 0x8
| Size of file in Data
|-
| 0x10
| 0x4
| Offset of filename in String Table
|-
| 0x14
| 0x4
| Size of Hashed region of file (for HFS0s, this is the size of the pre-filedata portion, for NCAs this is usually 0x200).
|-
| 0x18
| 8
| Zero/Reserved
|-
| 0x20
| 0x20
| SHA256 hash of the first (size of hashed region) bytes of filedata.
|}
|}