From 841e28707942c55687f758f72821a99c8d5eb611 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Tue, 26 Oct 2021 01:49:42 +0200 Subject: [PATCH] 2 updated structures thanks to @GoobyCorp. --- .../Mercury Steam Metroid Dread.tcl | 34 +++++++++++-------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/HexFiend Template/Mercury Steam Metroid Dread.tcl b/HexFiend Template/Mercury Steam Metroid Dread.tcl index 2a1bf69..6b82e5a 100644 --- a/HexFiend Template/Mercury Steam Metroid Dread.tcl +++ b/HexFiend Template/Mercury Steam Metroid Dread.tcl @@ -380,26 +380,32 @@ proc parse_tv {} { } 0xC897DE38447F5CF2 { - # ??? WATER_VOLUMES / LAVA_VOLUMES - set num_records [uint32 "Number of Volumes"] - for { set i 0 } { $i < $num_records } { incr i } { - section "Volume $i" { - sectionvalue [cstr "utf8"] - set num_props [uint32 "Number of Properties"] - for { set j 0 } { $j < $num_props } { incr j } { - parse_tv + # base::global::CRntSmallDictionary (Water-/Lava-Volumes) + section "CRntSmallDictionary" { + set num_records [uint32] + sectionvalue "$num_records entries" + for { set i 0 } { $i < $num_records } { incr i } { + section "CRntSmallDict $i" { + sectionvalue [cstr "utf8"] + set num_props [uint32 "Number of Properties"] + for { set j 0 } { $j < $num_props } { incr j } { + parse_tv + } } } } } 0xCADF3A163B607F5B { - # ??? Occluder Vignettes - set num_records [uint32 "Number of Vignettes"] - for { set i 0 } { $i < $num_records } { incr i } { - section "Vignette $i" { - sectionvalue [cstr "utf8"] - int8 -hex "Boolean" + # base::global::CRntSmallDictionary (Occluder Vignettes) + section "CRntSmallDictionary" { + set num_records [uint32] + sectionvalue "$num_records entries" + for { set i 0 } { $i < $num_records } { incr i } { + section "CRntSmallDict $i" { + sectionvalue [cstr "utf8"] + int8 -hex "Boolean" + } } } }