mirror of
https://github.com/xavo95/repak.git
synced 2025-01-18 19:04:07 +00:00
Fix reading path hash index
This commit is contained in:
parent
17ddf22e73
commit
8fa8dfa2f9
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ impl Pak {
|
||||||
|
|
||||||
let mut path_hash_index = vec![];
|
let mut path_hash_index = vec![];
|
||||||
let mut phi_reader = io::Cursor::new(&mut path_hash_index_buf);
|
let mut phi_reader = io::Cursor::new(&mut path_hash_index_buf);
|
||||||
for _ in 0..len {
|
for _ in 0..phi_reader.read_u32::<LE>()? {
|
||||||
let hash = phi_reader.read_u64::<LE>()?;
|
let hash = phi_reader.read_u64::<LE>()?;
|
||||||
let encoded_entry_offset = phi_reader.read_u32::<LE>()?;
|
let encoded_entry_offset = phi_reader.read_u32::<LE>()?;
|
||||||
path_hash_index.push((hash, encoded_entry_offset));
|
path_hash_index.push((hash, encoded_entry_offset));
|
||||||
|
|
Loading…
Reference in a new issue