mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-20 03:37:47 +00:00
Fill out missing sqpack header fields
This commit is contained in:
parent
0d1f61f020
commit
7b39492612
1 changed files with 14 additions and 1 deletions
15
src/index.rs
15
src/index.rs
|
@ -24,12 +24,25 @@ enum SqPackFileType {
|
|||
#[binrw]
|
||||
#[brw(magic = b"SqPack\0\0")]
|
||||
pub struct SqPackHeader {
|
||||
#[brw(pad_size_to = 4)]
|
||||
platform_id: Platform,
|
||||
#[brw(pad_before = 3)]
|
||||
size: u32,
|
||||
// Have only seen version 1
|
||||
version: u32,
|
||||
#[brw(pad_size_to = 4)]
|
||||
file_type: SqPackFileType,
|
||||
|
||||
// some unknown value, zeroed out for index files
|
||||
unk1: u32,
|
||||
unk2: u32,
|
||||
|
||||
// always 0xFFFFFFFF
|
||||
unk3: u32,
|
||||
|
||||
#[brw(pad_before = 924)]
|
||||
#[brw(pad_after = 44)]
|
||||
// always a certain value for index values, otherwise some value based on the content of the data
|
||||
unk4: [u8; 24]
|
||||
}
|
||||
|
||||
#[binrw]
|
||||
|
|
Loading…
Add table
Reference in a new issue