diff --git a/repak/src/pak.rs b/repak/src/pak.rs index ca055cf..f2dc716 100644 --- a/repak/src/pak.rs +++ b/repak/src/pak.rs @@ -205,6 +205,10 @@ impl PakReader { self.pak.encryption_guid } + pub fn path_hash_seed(&self) -> Option { + self.pak.index.path_hash_seed + } + pub fn get(&self, path: &str, reader: &mut R) -> Result, super::Error> { let mut data = Vec::new(); self.read_file(path, reader, &mut data)?; diff --git a/repak_cli/src/main.rs b/repak_cli/src/main.rs index d66767c..8fadcea 100644 --- a/repak_cli/src/main.rs +++ b/repak_cli/src/main.rs @@ -200,6 +200,7 @@ fn info(aes_key: Option, action: ActionInfo) -> Result<(), repak::E println!("version major: {}", pak.version().version_major()); println!("encrypted index: {}", pak.encrypted_index()); println!("encrytion guid: {:032X?}", pak.encryption_guid()); + println!("path hash seed: {:08X?}", pak.path_hash_seed()); println!("{} file entries", pak.files().len()); Ok(()) } diff --git a/repak_cli/tests/cli.rs b/repak_cli/tests/cli.rs index e46dcd8..5026bc7 100644 --- a/repak_cli/tests/cli.rs +++ b/repak_cli/tests/cli.rs @@ -17,6 +17,7 @@ fn test_cli_info() { version major: Fnv64BugFix encrypted index: false encrytion guid: Some(00000000000000000000000000000000) + path hash seed: Some(205C5A7D) 4 file entries "}); }