PFS0 (File Format)
Jump to navigation
Jump to search
The PFS0 (Partition FS) format is used within NCAs, and is a Switch-exclusive format.
Header
Offset | Type | Description |
---|---|---|
0x0 | UInt32 | The "PFS0" magic (0x30534650 in LE) |
0x4 | UInt32 | Number of files within the PFS |
0x8 | UInt32 | Size of the string table |
0xC | UInt32 | Padding, all-zeroes |
0x10 | FileEntryTable[] | Array of file entry tables (see below) |
N/A | string[] | Array of null-terminated filename strings |
N/A | byte[] | Actual file data |
File entry table
Offset | Type | Description |
---|---|---|
0x0 | UInt64 | Offset of file in PFS |
0x8 | UInt64 | Size of file |
0x10 | UInt32 | Offset of name in string table |
0x14 | UInt32 | Padding, all-zeroes |