TotalWar-Modding / tw_pack_lib

1 stars 0 forks source link

Implement PackFile Index support. #13

Closed Frodo45127 closed 5 years ago

Frodo45127 commented 5 years ago

This implements support for reading and writing the PackFile Index (list of PackFiles names between the header and the PackedFile Index) of a PackFile. This is needed for RPFM, as currently uses it as a way to set dependencies for specific PackFiles. Only confirmed to work in normal PackFiles, as I haven't seen it used in any encrypted PackFile.

About some functions now having one arg per line, I did it because it was hard to read the type of seven different args in a row. Not really needed for the patch, but as it affects the same rows I included it.