PKS

From Wulinshu
Jump to navigation Jump to search

The PKS file is an container for storing various files.
When looking more closely the PKS format looks just like an wrapper for the IPAC format.
Sometimes these files can be compressed with GZip Deflate.

Header

Position Length Type Description
0x00 0x04 string Identifier (PAKS)
0x04 0x04 uint IPAC offset
0x08 0x04 uint Unknown
0x0C 0x04 uint Unknown

IPAC

Header

Position Length Type Description
0x00 0x04 string Identifier (IPAC)
0x04 0x04 uint Dictionary offset (TOC)
0x08 0x04 uint File count
0x0C 0x04 uint Content size in bytes

Dictionary Entry

Position Length Type Description
0x00 0x08 string Filename
0x08 0x04 string Extension/Type
0x0C 0x04 uint File offset
0x10 0x04 uint File size