Difference between revisions of "ZiPatch File Structure"
From FFXIV Classic Wiki
(Created page with "ZiPatch File Header 91 5A 49 50 41 54 43 48 0D 0A 1A 0A uint dataSize (Little Endian) byte data[dataSize] byte crc[4] crc is standard CRC32 checksum (RFC 1952) of the data b...") |
|||
Line 3: | Line 3: | ||
uint dataSize (Little Endian) | uint dataSize (Little Endian) | ||
− | byte data[dataSize] | + | byte data[dataSize + 4] |
byte crc[4] | byte crc[4] | ||
crc is standard CRC32 checksum (RFC 1952) of the data block | crc is standard CRC32 checksum (RFC 1952) of the data block | ||
− | + | byte type[data[0..3]] | |
"FHDR" (File Header) | "FHDR" (File Header) | ||
"APLY" | "APLY" | ||
Line 15: | Line 15: | ||
"ADIR" (Add Directory) | "ADIR" (Add Directory) | ||
"DELD" (Delete Directory) | "DELD" (Delete Directory) | ||
+ | |||
+ | >>FHDR | ||
+ | byte version[4] | ||
+ | byte result[4] | ||
+ | uint numEtry (Little Endian) | ||
+ | uint numAply (Little Endian) | ||
+ | uint numDeld (Little Endian) | ||
+ | |||
+ | >>ADIR | ||
+ | uint pathSize (Little Endian) | ||
+ | byte path[pathSize] | ||
+ | |||
+ | >>DELD | ||
+ | uint pathSize (Little Endian) | ||
+ | byte path[pathSize] |
Revision as of 17:25, 5 June 2019
ZiPatch File Header 91 5A 49 50 41 54 43 48 0D 0A 1A 0A
uint dataSize (Little Endian) byte data[dataSize + 4] byte crc[4]
crc is standard CRC32 checksum (RFC 1952) of the data block
byte type[data[0..3]] "FHDR" (File Header) "APLY" "APFS" "ETRY" (Entry File) "ADIR" (Add Directory) "DELD" (Delete Directory)
>>FHDR byte version[4] byte result[4] uint numEtry (Little Endian) uint numAply (Little Endian) uint numDeld (Little Endian)
>>ADIR uint pathSize (Little Endian) byte path[pathSize]
>>DELD uint pathSize (Little Endian) byte path[pathSize]