Indiana Jones PS2 PK2: Difference between revisions
Jump to navigation
Jump to search
imported>WATTO No edit summary |
|||
| Line 31: | Line 31: | ||
* The *.hsh file is all strings, not fields!<br> | * The *.hsh file is all strings, not fields!<br> | ||
* You need to read this file by reading a full line, then find the 2 separators from the back of the line. This is because the filename can have spaces in it.<br> | * You need to read this file by reading a full line, then find the 2 separators from the back of the line. This is because the filename can have spaces in it.<br> | ||
Revision as of 02:55, 1 August 2006
PK2 + HSH
- Format Type : Archive
- Endian Order : Little Endian
Format Specifications
// PK2 FILE
// for each file
- byte {X} - File Data
- byte {0-2047} - null Padding to a multiple of 2048 bytes
// HSH FILE
// for each file
- char {X} - Filename (String)
- byte {1} - Filename Terminator (byte 32)
- char {X} - File Length (String)
- byte {1} - File Length Terminator (byte 32)
- char {X} - File Offset (String)
- uint16 {2} - New Line Characters (13,10)
Notes and Comments
- The *.pk2 file contains the file data, the *.hsh file contains the directory
- The *.hsh file is all strings, not fields!
- You need to read this file by reading a full line, then find the 2 separators from the back of the line. This is because the filename can have spaces in it.