Advertisement
fastman92

fastman92 RPF archives

Sep 20th, 2015
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. Upcoming specification.
  2. Structure of RPF archive.
  3.  
  4. beginning of RPFarchive, first header:
  5.  
  6. #pragma pack(push, 1)
  7. struct tRpfFastman92GTASAfirstHeader
  8. {
  9. DWORD magicID; // VERF
  10. DWORD archiveFlags; // bits 0-3 archive version (should be 1), bits 4-7 metadata encryption type
  11. char authorName[12]; // constant value "fastman92" padded with zeros.
  12. };
  13. #pragma pack(pop)
  14.  
  15. VALIDATE_SIZE(tRpfFastman92GTASAfirstHeader, 0x14);
  16.  
  17. ------------
  18.  
  19. Second header, could be encrypted:
  20.  
  21.  
  22.  
  23. VALIDATE_SIZE(tImgFastman92GTASAsecondHeader, 16);
  24.  
  25.  
  26. Now there comes a list of entries.
  27.  
  28.  
  29. /////////////////
  30. Explanation of file flags:
  31. - bits 0-3, compression type
  32. - bits 4-7, encryption type
  33. - bit 8, forces loading file into memory upon opening
  34.  
  35. ///////////////////////////////////////////
  36.  
  37. Enumerations:
  38.  
  39. Compression type (4 bits for this value):
  40. - 0: no compression
  41. - 1: ZLIB compression
  42. - 2: LZ4 / LZ4 HC compression
  43.  
  44. Encryption type (4 bits for this value):
  45. - 0: no encryption
  46. - 1: encryption of variation 1, discouraged
  47. - 2: encryption of variation 2
  48.  
  49.  
  50. That's all!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement