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:
parent
385d63491e
commit
81ffadd870
1 changed files with 6 additions and 3 deletions
|
@ -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]
|
||||||
|
|
Loading…
Add table
Reference in a new issue