aboutsummaryrefslogtreecommitdiff
path: root/exporter/src/bin/debug.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-03-22 17:18:39 +0100
committermetamuffin <metamuffin@disroot.org>2025-03-22 17:18:39 +0100
commit2ee2f1af847dbc9f1292baefc9fd652167b9103a (patch)
treedfadbd29afdd00c80ab31e8dfaee217045102d95 /exporter/src/bin/debug.rs
parentd780d420a69fe239bdb93ce7d1899e380a682062 (diff)
downloadunity-tools-2ee2f1af847dbc9f1292baefc9fd652167b9103a.tar
unity-tools-2ee2f1af847dbc9f1292baefc9fd652167b9103a.tar.bz2
unity-tools-2ee2f1af847dbc9f1292baefc9fd652167b9103a.tar.zst
relative file ids
Diffstat (limited to 'exporter/src/bin/debug.rs')
-rw-r--r--exporter/src/bin/debug.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/exporter/src/bin/debug.rs b/exporter/src/bin/debug.rs
index 3f87ccf..b1d8d12 100644
--- a/exporter/src/bin/debug.rs
+++ b/exporter/src/bin/debug.rs
@@ -8,9 +8,9 @@ fn main() -> anyhow::Result<()> {
let node = fs.find_main_file().unwrap().to_owned();
let mut cab = fs.read(&node)?;
- let file = SerializedFile::read(&mut cab)?;
+ let file = SerializedFile::read(&mut cab, 0)?;
let shared_assets = if let Some(n) = file.find_fs_shared_assets(&fs) {
- Some(SerializedFile::read(fs.read(&n)?)?)
+ Some(SerializedFile::read(fs.read(&n)?, 1)?)
} else {
None
};