Expand description
Quake PAK archive manipulation.
Structs§
- Header
- The header of a PAK archive describes where the table is located in the file and its size.
- PakFile
- Represents a PAK file by filepath and PakManifest Provides methods to iterate over file contents.
- PakItem
- An iterator item representing a file in a PAK archive.
- PakManifest
- Represents the header, table, and table directory of a PAK file.
- Table
- PAK tables act as an index of all files in the archive. Each TableEntry points to its corresponding file data.
- Table
Entry - A single entry in a PAK Table. Each entry is 64 bytes in size.
Functions§
- sort_
walk_ paths - Sorts based on heirarchy and file name
- walk_
pak_ dir - Walks a directory and returns a vector of tuples containing the path and size of each file. Sorts based on heirarchy and file name. This sort order should be maintained in each PAK. Returns: (path: PathBuf, size: u64) Throws Error::ReadDirectory
- walk_
pak_ dir_ sync - Walks a directory and returns a vector of tuples containing the path and size of each file. Sorts based on heirarchy and file name. This sort order should be maintained in each PAK. Returns: (path: PathBuf, size: u64) Throws Error::ReadDirectory