aboutsummaryrefslogtreecommitdiff
path: root/src/bin/yaml.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-03-13 19:56:15 +0100
committermetamuffin <metamuffin@disroot.org>2025-03-13 19:56:15 +0100
commitd3006b6d05f7995c6a49d67401293f1266b3ea1f (patch)
tree04541847c9fec65091a10c586c237ffd835e67c1 /src/bin/yaml.rs
parent58186bb96e38b92e426e75e08b0e0c95d05d319c (diff)
downloadunity-tools-d3006b6d05f7995c6a49d67401293f1266b3ea1f.tar
unity-tools-d3006b6d05f7995c6a49d67401293f1266b3ea1f.tar.bz2
unity-tools-d3006b6d05f7995c6a49d67401293f1266b3ea1f.tar.zst
move SerializedFile functions to impl
Diffstat (limited to 'src/bin/yaml.rs')
-rw-r--r--src/bin/yaml.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/yaml.rs b/src/bin/yaml.rs
index 2899c4c..fd3eec6 100644
--- a/src/bin/yaml.rs
+++ b/src/bin/yaml.rs
@@ -5,8 +5,7 @@ use std::{
io::{BufReader, Seek, SeekFrom, stdout},
};
use unity_tools::{
- classes::HValue, object::read::read_value, serialized_file::read_serialized_file,
- unityfs::UnityFS,
+ classes::HValue, object::read::read_value, serialized_file::SerializedFile, unityfs::UnityFS,
};
fn main() -> anyhow::Result<()> {
@@ -18,7 +17,7 @@ fn main() -> anyhow::Result<()> {
let node = fs.find_main_file().unwrap().to_owned();
let mut cab = fs.read(&node)?;
- let file = read_serialized_file(&mut cab)?;
+ let file = SerializedFile::read(&mut cab)?;
for ob in file.objects {
cab.seek(SeekFrom::Start(ob.data_offset))?;
let typetree = if ob.type_id < 0 {