mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-21 20:27:46 +00:00
Hardcode index entry size as 24 bytes, since the Rust size doesn't match
This commit is contained in:
parent
3bd6fbf9c3
commit
03f9df66d3
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ pub struct IndexFile {
|
|||
index_header: SqPackIndexHeader,
|
||||
|
||||
#[br(seek_before = SeekFrom::Start(index_header.index_data_offset.into()))]
|
||||
#[br(count = index_header.index_data_size / (core::mem::size_of::< IndexHashTableEntry > () as u32))]
|
||||
#[br(count = index_header.index_data_size / 24)]
|
||||
pub entries: Vec<IndexHashTableEntry>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue