1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use binread::BinRead;
#[derive(Debug, BinRead)]
pub struct VPKHeader {
pub signature: u32,
pub version: u32,
pub tree_length: u32,
}
#[derive(Debug, BinRead)]
pub struct VPKHeaderV2 {
pub embed_chunk_length: u32,
pub chunk_hashes_length: u32,
pub self_hashes_length: u32,
pub signature_length: u32,
}
#[derive(Debug, BinRead)]
pub struct VPKHeaderV2Checksum {
pub tree_checksum: u128,
pub chunk_hashes_checksum: u128,
pub file_checksum: u128,
}