diff options
Diffstat (limited to 'exporter/src/bin/material_stats.rs')
-rw-r--r-- | exporter/src/bin/material_stats.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exporter/src/bin/material_stats.rs b/exporter/src/bin/material_stats.rs index b853442..9faa581 100644 --- a/exporter/src/bin/material_stats.rs +++ b/exporter/src/bin/material_stats.rs @@ -4,11 +4,11 @@ use unity_tools::{assetbundle::AssetBundle, classes::material::Material}; fn main() -> anyhow::Result<()> { env_logger::init_from_env("LOG"); let file = BufReader::new(File::open(args().nth(1).unwrap()).unwrap()); - let mut bundle = AssetBundle::open(file)?; + let mut bundle = AssetBundle::open(file, "samples")?; let mode = args().nth(2).unwrap(); - for ob in bundle.all_toplevel_of_class("Material").collect::<Vec<_>>() { + for ob in bundle.all_toplevel_of_class("Material") { let mat = ob.load(&mut bundle)?.parse::<Material>()?; match mode.as_str() { |