aboutsummaryrefslogtreecommitdiff
path: root/src/bin/debug.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/debug.rs')
-rw-r--r--src/bin/debug.rs21
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:#?}");