QAR
From mgsdevwiki
QAR is a container format used in MGS4 for storing and indexing TXN files.
Format Specifications
Metal Gear Solid 4
- Endian Order : Big Endian
Files | ||
---|---|---|
Array {X} | TXN | |
Index | ||
uint16 {2} | Number of TXNs | |
uint16 {2} | Null Bytes | |
For each TXN | ||
uint32 {4} | Filetype ID (0x03 for TXN) Bitwise AND with Hashed TXN filename | |
uint32 {4} | Txn Size | |
For each TXN | ||
char {x} | Filename | |
byte {1} | null byte filename terminator | |
File end | ||
bytes {x} | null padding 4-byte alignment (file position) | |
uint32 {4} | Index offset |