diff options
author | metamuffin <metamuffin@disroot.org> | 2025-03-11 15:52:03 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-03-11 15:52:03 +0100 |
commit | 7250587f46ca51ad662a0895a51742669b9cbb8f (patch) | |
tree | 8744d452a085a3a9b593dac0a77e987eb70fc91f /src/bin/debug.rs | |
parent | 30bf5e07e52142a154a5660574213e59e0363ada (diff) | |
download | unity-tools-7250587f46ca51ad662a0895a51742669b9cbb8f.tar unity-tools-7250587f46ca51ad662a0895a51742669b9cbb8f.tar.bz2 unity-tools-7250587f46ca51ad662a0895a51742669b9cbb8f.tar.zst |
more inspection tools
Diffstat (limited to 'src/bin/debug.rs')
-rw-r--r-- | src/bin/debug.rs | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/bin/debug.rs b/src/bin/debug.rs index 9004055..5633387 100644 --- a/src/bin/debug.rs +++ b/src/bin/debug.rs @@ -3,10 +3,7 @@ use std::{ fs::File, io::{BufReader, Seek, SeekFrom}, }; -use unity_tools::{ - serialized_file::{TypeTreeNode, read_serialized_file}, - unityfs::UnityFS, -}; +use unity_tools::{serialized_file::read_serialized_file, unityfs::UnityFS}; fn main() -> anyhow::Result<()> { env_logger::init_from_env("LOG"); @@ -34,12 +31,12 @@ fn main() -> anyhow::Result<()> { // .expect("unknown type") &file.types[ob.type_id as usize] }; - fn print_types(tt: &TypeTreeNode) { - println!("{}", tt.type_string); - for c in &tt.children { - print_types(&c); - } - } + // fn print_types(tt: &TypeTreeNode) { + // println!("{}", tt.type_string); + // for c in &tt.children { + // print_types(&c); + // } + // } // fn print_crit_types(tt: &TypeTreeNode) { // let mut crit = tt.byte_size == -1 || tt.children.is_empty(); // for c in &tt.children { @@ -51,9 +48,9 @@ fn main() -> anyhow::Result<()> { // } // } if let Some(tree) = &typetree.type_tree { - // println!("{}", tree.type_string); + println!("{}", tree.type_string); // print_crit_types(tree); - print_types(tree); + // print_types(tree); } // eprintln!("{typetree:#?}"); |