Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions repak/src/pak.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ impl PakReader {
self.pak.encryption_guid
}

pub fn compression(&self) -> Option<&Compression> {
self.pak.compression.iter().find_map(|c| c.as_ref())
}

pub fn path_hash_seed(&self) -> Option<u64> {
self.pak.index.path_hash_seed
}
Expand Down
5 changes: 4 additions & 1 deletion repak_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ fn info(aes_key: Option<aes::Aes256>, action: ActionInfo) -> Result<(), repak::E
println!("version: {}", pak.version());
println!("version major: {}", pak.version().version_major());
println!("encrypted index: {}", pak.encrypted_index());
println!("encrytion guid: {:032X?}", pak.encryption_guid());
println!("encryption guid: {:032X?}", pak.encryption_guid());
if let Some(c) = pak.compression() {
println!("compression: {}", c);
}
println!("path hash seed: {:08X?}", pak.path_hash_seed());
println!("{} file entries", pak.files().len());
Ok(())
Expand Down
Loading