1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-22 04:37:46 +00:00

Hardcode index entry size as 24 bytes, since the Rust size doesn't match

This commit is contained in:
Joshua Goins 2022-08-06 21:19:31 -04:00
parent 3bd6fbf9c3
commit 03f9df66d3

View file

@ -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>,
}