From c5deef8753d7cf52ca9ffa3b1dde2be0d78efea6 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 26 Sep 2023 14:26:05 -0700 Subject: [PATCH] support rbxmx --- Cargo.lock | 15 +++++++++++++++ Cargo.toml | 1 + src/main.rs | 6 ++++++ 3 files changed, 22 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 6af09af..c8b2873 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1442,6 +1442,20 @@ dependencies = [ "thiserror", ] +[[package]] +name = "rbx_xml" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4bc65b70827519fdc4ab47416d1085b912f087fadab9ed415471b6daba635574" +dependencies = [ + "base64", + "log", + "rbx_dom_weak", + "rbx_reflection", + "rbx_reflection_database", + "xml-rs", +] + [[package]] name = "redox_syscall" version = "0.3.5" @@ -1658,6 +1672,7 @@ dependencies = [ "rbx_binary", "rbx_dom_weak", "rbx_reflection_database", + "rbx_xml", "wgpu", "winit", ] diff --git a/Cargo.toml b/Cargo.toml index c8e0776..0481dcf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,6 +17,7 @@ pollster = "0.3.0" rbx_binary = "0.7.1" rbx_dom_weak = "2.5.0" rbx_reflection_database = "0.2.7" +rbx_xml = "0.13.1" wgpu = "0.17.0" winit = "0.28.6" diff --git a/src/main.rs b/src/main.rs index 1aaf2d9..b6ca2c9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -847,6 +847,12 @@ impl framework::Example for GraphicsData { }else{ None } + }else if &first_8==b"