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

Fix LVB parsing for some files, add NVX path

This commit is contained in:
Joshua Goins 2025-07-12 09:03:02 -04:00
parent 0c6383c3cc
commit 06a9e5f4d8

View file

@ -214,14 +214,19 @@ pub struct ScnUnknown4Section {
unk3: i32, unk3: i32,
unk4: i32, unk4: i32,
unk5: i32, unk5: i32,
nvx_path_offset: i32,
#[br(seek_before = SeekFrom::Current(nvm_path_offset as i64 - ScnUnknown4Section::SIZE as i64))] #[br(seek_before = SeekFrom::Current(nvm_path_offset as i64 - ScnUnknown4Section::SIZE as i64))]
#[br(restore_position, parse_with = read_string_until_null)] #[br(restore_position, parse_with = read_string_until_null)]
pub path_nvm: String, pub path_nvm: String,
#[br(seek_before = SeekFrom::Current(nvx_path_offset as i64 - ScnUnknown4Section::SIZE as i64))]
#[br(restore_position, parse_with = read_string_until_null)]
pub path_nvx: String,
} }
impl ScnUnknown4Section { impl ScnUnknown4Section {
pub const SIZE: usize = 0x18; pub const SIZE: usize = 0x1C;
} }
impl Lvb { impl Lvb {