From ff98a95bdb81ffd8eebe9ef332e4697a1f104942 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 3 Jan 2025 19:56:19 -0800 Subject: [PATCH] include bot in binary --- strafe-client/src/physics_worker.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strafe-client/src/physics_worker.rs b/strafe-client/src/physics_worker.rs index 64f3c79..99940fb 100644 --- a/strafe-client/src/physics_worker.rs +++ b/strafe-client/src/physics_worker.rs @@ -336,8 +336,8 @@ pub fn new<'a>( )->crate::compat_worker::QNWorker<'a,TimedInstruction>{ let physics=crate::physics::PhysicsContext::default(); //load bot - let file=std::fs::File::open("/home/quat/strafesnet/roblox_bot_file/files/bhop_marble_7cf33a64-7120-4514-b9fa-4fe29d9523d").unwrap(); - let mut bot_file=strafesnet_roblox_bot_file::v0::File::new(std::io::BufReader::new(file)).unwrap(); + let data=include_bytes!("/home/quat/strafesnet/roblox_bot_file/files/bhop_marble_7cf33a64-7120-4514-b9fa-4fe29d9523d"); + let mut bot_file=strafesnet_roblox_bot_file::v0::File::new(std::io::BufReader::new(std::io::Cursor::new(data))).unwrap(); let mut interpolator=PlayBacker::new( physics, bot_file.read_all().unwrap(),