Talk:IMG archive

From GTAMods Wiki
Revision as of 20:37, 29 October 2020 by Squ1dd13 (talk | contribs) (SA - Streaming size/archive size: new section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SA - Streaming size/archive size

Why is it thought that there are two sizes in each directory entry? To me, the fact that the second size is always zero suggests that the two 2-byte size values are actually just one 4-byte value. If you read a 4-byte value there, you always get the same number as you would get by reading the first 2-byte value (by virtue of the fact that the second 2 bytes are always 0). Additionally, it would make sense for Rockstar to have used a uint32_t for the size, because they used one for the offset. All my tools use a uint32_t here and it has never caused any issues. – Squ1dd13 (talk) 20:37, 29 October 2020 (UTC)