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

self_hash in the index header is SHA1 too

This commit is contained in:
Joshua Goins 2025-03-06 16:38:44 -05:00
parent 385d63491e
commit 81ffadd870

View file

@ -42,7 +42,7 @@ pub struct SqPackHeader {
#[brw(pad_before = 924)] #[brw(pad_before = 924)]
#[brw(pad_after = 44)] #[brw(pad_after = 44)]
// The SHA1 of the bytes immediately before this // The SHA1 of the bytes immediately before this
sha1: [u8; 20] sha1_hash: [u8; 20]
} }
#[binrw] #[binrw]
@ -63,8 +63,11 @@ pub struct SqPackIndexHeader {
dir_index_data_size: u32, dir_index_data_size: u32,
dir_index_data_hash: [u8; 64], dir_index_data_hash: [u8; 64],
index_type: u32, index_type: u32,
#[br(pad_before = 656)]
self_hash: [u8; 64], #[brw(pad_before = 656)]
#[brw(pad_after = 44)]
// The SHA1 of the bytes immediately before this
sha1_hash: [u8; 20],
} }
#[binrw] #[binrw]