From b142d2adf4db430b2aa8b11c8d50ab41d5834eff Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 3 Oct 2024 20:54:23 -0700 Subject: [PATCH] update roblox_emulator --- Cargo.lock | 8 ++++---- Cargo.toml | 2 +- src/main.rs | 5 +++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 58e1458..3cabfca 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -190,9 +190,9 @@ dependencies = [ [[package]] name = "glam" -version = "0.28.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "779ae4bf7e8421cf91c0b3b64e7e8b40b862fba4d393f59150042de7c4965a94" +checksum = "c28091a37a5d09b555cb6628fd954da299b536433834f5b8e59eba78e0cbbf8a" [[package]] name = "heck" @@ -425,9 +425,9 @@ dependencies = [ [[package]] name = "roblox_emulator" -version = "0.2.2" +version = "0.3.1" source = "sparse+https://git.itzana.me/api/packages/strafesnet/cargo/" -checksum = "1f084d8b843fd96371cca381799313c9b3d0634d2da23ac0c6334bdaf0a2225e" +checksum = "b58d7bb42d458984e629a012757474710fd0e429c2c824a2529574be5e7c2fd6" dependencies = [ "glam", "mlua", diff --git a/Cargo.toml b/Cargo.toml index bbf1a1b..b2abef2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,4 +9,4 @@ authors = ["Rhys Lloyd "] [dependencies] clap = { version = "4.5.18", features = ["derive"] } -roblox_emulator = { version = "0.2.2", registry = "strafesnet" } +roblox_emulator = { version = "0.3.1", registry = "strafesnet" } diff --git a/src/main.rs b/src/main.rs index af376c6..a29f9ae 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,7 +36,8 @@ fn run_script( std::fs::File::open(input_file).unwrap().read_to_string(&mut source).unwrap(); source }; - let (mut context,script)=roblox_emulator::context::Context::script_singleton(source); + let (mut context,script,services)=roblox_emulator::context::Context::script_singleton(source); let runner=roblox_emulator::runner::Runner::new().unwrap(); - runner.run_script(script,&mut context).unwrap(); + let runnable=runner.runnable_context(&mut context,&services).unwrap(); + runnable.run_script(script).unwrap(); }