update roblox_emulator
This commit is contained in:
parent
c26f3d697d
commit
b142d2adf4
8
Cargo.lock
generated
8
Cargo.lock
generated
@ -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",
|
||||
|
@ -9,4 +9,4 @@ authors = ["Rhys Lloyd <krakow20@gmail.com>"]
|
||||
|
||||
[dependencies]
|
||||
clap = { version = "4.5.18", features = ["derive"] }
|
||||
roblox_emulator = { version = "0.2.2", registry = "strafesnet" }
|
||||
roblox_emulator = { version = "0.3.1", registry = "strafesnet" }
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user