aboutsummaryrefslogtreecommitdiff
path: root/src/bin/textures.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-03-13 19:50:50 +0100
committermetamuffin <metamuffin@disroot.org>2025-03-13 19:50:50 +0100
commit58186bb96e38b92e426e75e08b0e0c95d05d319c (patch)
tree17d4dfe37a6a7c06f108e4331d37101e42757e4f /src/bin/textures.rs
parent918adb796ebe5099c32148542469b647ee6dec28 (diff)
downloadunity-tools-58186bb96e38b92e426e75e08b0e0c95d05d319c.tar
unity-tools-58186bb96e38b92e426e75e08b0e0c95d05d319c.tar.bz2
unity-tools-58186bb96e38b92e426e75e08b0e0c95d05d319c.tar.zst
main file finder helper
Diffstat (limited to 'src/bin/textures.rs')
-rw-r--r--src/bin/textures.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bin/textures.rs b/src/bin/textures.rs
index 6cd9577..209e23c 100644
--- a/src/bin/textures.rs
+++ b/src/bin/textures.rs
@@ -22,9 +22,7 @@ fn main() -> anyhow::Result<()> {
create_dir_all("/tmp/a").unwrap();
let cabfile = fs
- .nodes()
- .iter()
- .find(|n| !n.name.ends_with(".resource") && !n.name.ends_with(".resS"))
+ .find_main_file()
.ok_or(anyhow!("no CAB file found"))?
.to_owned();