Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Upcoming specification.
- Structure of RPF archive.
- beginning of RPFarchive, first header:
- #pragma pack(push, 1)
- struct tRpfFastman92GTASAfirstHeader
- {
- DWORD magicID; // VERF
- DWORD archiveFlags; // bits 0-3 archive version (should be 1), bits 4-7 metadata encryption type
- char authorName[12]; // constant value "fastman92" padded with zeros.
- };
- #pragma pack(pop)
- VALIDATE_SIZE(tRpfFastman92GTASAfirstHeader, 0x14);
- ------------
- Second header, could be encrypted:
- VALIDATE_SIZE(tImgFastman92GTASAsecondHeader, 16);
- Now there comes a list of entries.
- /////////////////
- Explanation of file flags:
- - bits 0-3, compression type
- - bits 4-7, encryption type
- - bit 8, forces loading file into memory upon opening
- ///////////////////////////////////////////
- Enumerations:
- Compression type (4 bits for this value):
- - 0: no compression
- - 1: ZLIB compression
- - 2: LZ4 / LZ4 HC compression
- Encryption type (4 bits for this value):
- - 0: no encryption
- - 1: encryption of variation 1, discouraged
- - 2: encryption of variation 2
- That's all!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement