From 06a9e5f4d8772f52b49373cddef993e676a6cc3b Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 12 Jul 2025 09:03:02 -0400 Subject: [PATCH] Fix LVB parsing for some files, add NVX path --- src/lvb.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lvb.rs b/src/lvb.rs index 70653d0..0e0de4a 100644 --- a/src/lvb.rs +++ b/src/lvb.rs @@ -214,14 +214,19 @@ pub struct ScnUnknown4Section { unk3: i32, unk4: i32, unk5: i32, + nvx_path_offset: i32, #[br(seek_before = SeekFrom::Current(nvm_path_offset as i64 - ScnUnknown4Section::SIZE as i64))] #[br(restore_position, parse_with = read_string_until_null)] 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 { - pub const SIZE: usize = 0x18; + pub const SIZE: usize = 0x1C; } impl Lvb {