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

Fill out missing sqpack header fields

This commit is contained in:
Joshua Goins 2025-03-06 16:35:01 -05:00
parent 0d1f61f020
commit 7b39492612

View file

@ -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]