aboutsummaryrefslogtreecommitdiff
path: root/src/object/read.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-03-23 20:18:10 +0100
committermetamuffin <metamuffin@disroot.org>2025-03-23 20:18:10 +0100
commitd5aa53fafed0dbf6d43943e3b88b99693821e5cd (patch)
tree1facf5a2e9d83fa018b03636f03c641ec1a1c46a /src/object/read.rs
parent756664281e6f8c37653e8769890962e8bab933e9 (diff)
downloadunity-tools-d5aa53fafed0dbf6d43943e3b88b99693821e5cd.tar
unity-tools-d5aa53fafed0dbf6d43943e3b88b99693821e5cd.tar.bz2
unity-tools-d5aa53fafed0dbf6d43943e3b88b99693821e5cd.tar.zst
audio clips
Diffstat (limited to 'src/object/read.rs')
-rw-r--r--src/object/read.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/object/read.rs b/src/object/read.rs
index 013874c..1f79e30 100644
--- a/src/object/read.rs
+++ b/src/object/read.rs
@@ -33,6 +33,7 @@ impl Value {
"SInt32" => Ok(Value::I32(data.read_i32(e)?)),
"SInt64" => Ok(Value::I64(data.read_i64(e)?)),
"bool" => Ok(Value::Bool(data.read_u8()? != 0)),
+ "FileSize" => Ok(Value::U64(data.read_u64(e)?)),
"float" => {
data.align(4)?;
Ok(Value::F32(data.read_f32(e)?))