diff options
author | metamuffin <metamuffin@disroot.org> | 2025-03-14 11:20:02 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-03-14 11:20:02 +0100 |
commit | 6debd2c0a230d623c06869ca4c4f13519f53eb5d (patch) | |
tree | a6a2ea4163599833be71fc240ce5fc219eb57afe /src/bin | |
parent | b9affdc70b3fa206c44e1fee352a85dc4f7a27b0 (diff) | |
download | unity-tools-6debd2c0a230d623c06869ca4c4f13519f53eb5d.tar unity-tools-6debd2c0a230d623c06869ca4c4f13519f53eb5d.tar.bz2 unity-tools-6debd2c0a230d623c06869ca4c4f13519f53eb5d.tar.zst |
improve PPtr functions
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/meshes.rs | 1 | ||||
-rw-r--r-- | src/bin/typegraph.rs | 9 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/bin/meshes.rs b/src/bin/meshes.rs index d59b496..e3758c4 100644 --- a/src/bin/meshes.rs +++ b/src/bin/meshes.rs @@ -16,7 +16,6 @@ fn main() -> anyhow::Result<()> { env_logger::init_from_env("LOG"); let file = || BufReader::new(File::open(args().nth(1).unwrap()).unwrap()); let mut fs = UnityFS::open(file())?; - // let mut fs2 = UnityFS::open(file())?; let mut i = 0; create_dir_all("/tmp/a").unwrap(); diff --git a/src/bin/typegraph.rs b/src/bin/typegraph.rs index 7425778..ea55e05 100644 --- a/src/bin/typegraph.rs +++ b/src/bin/typegraph.rs @@ -41,7 +41,10 @@ fn main() -> anyhow::Result<()> { if let Some(inner) = c.type_string.strip_prefix("PPtr<") { c.type_string = inner.strip_suffix(">").unwrap().to_owned(); f = true; - } else if matches!(c.type_string.as_str(), "Array" | "pair" | "map") { + } else if matches!( + c.type_string.as_str(), + "Array" | "pair" | "map" | "vector" + ) { nc.extend(c.children); f = true } else { @@ -105,7 +108,6 @@ fn is_primitive(s: &str) -> bool { | "SInt64" | "bool" | "float" - | "vector" | "string" | "float3" | "float4" @@ -113,6 +115,9 @@ fn is_primitive(s: &str) -> bool { | "Vector2f" | "Vector3f" | "Vector4f" + | "Matrix4x4f" + | "ColorRGBA" + | "Rectf" | "Quaternionf" | "xform" ) |