forked from StrafesNET/strafe-project
marble
This commit is contained in:
parent
c31bad8a06
commit
d8437567ac
@ -27,7 +27,7 @@ impl WindowContext<'_>{
|
|||||||
match event{
|
match event{
|
||||||
winit::event::WindowEvent::DroppedFile(_path)=>{
|
winit::event::WindowEvent::DroppedFile(_path)=>{
|
||||||
//match crate::file::load_file(path.as_path()){
|
//match crate::file::load_file(path.as_path()){
|
||||||
let data=include_bytes!("/run/media/quat/Files/Documents/map-files/verify-scripts/maps/bhop_snfm/5692152916.snfm");
|
let data=include_bytes!("/run/media/quat/Files/Documents/map-files/verify-scripts/maps/bhop_snfm/5692093612.snfm");
|
||||||
match crate::file::load(std::io::Cursor::new(data.as_slice())){
|
match crate::file::load(std::io::Cursor::new(data.as_slice())){
|
||||||
Ok(map)=>self.physics_thread.send(TimedInstruction{time,instruction:crate::physics_worker::Instruction::ChangeMap(map)}).unwrap(),
|
Ok(map)=>self.physics_thread.send(TimedInstruction{time,instruction:crate::physics_worker::Instruction::ChangeMap(map)}).unwrap(),
|
||||||
Err(e)=>println!("Failed to load map: {e}"),
|
Err(e)=>println!("Failed to load map: {e}"),
|
||||||
|
Loading…
Reference in New Issue
Block a user