From 4ba01304ede403816de069357ca5aeff535ccac7 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Thu, 3 Apr 2025 21:31:55 -0400 Subject: Binary saves --- src/lib.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index a77ff19..71c1cf6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -56,11 +56,10 @@ where } #[cfg(not(target_arch = "wasm32"))] -pub async fn run<'a, F, G, Fut>(title: &str, w: u32, h: u32, options: Options, gnew: F) -> Erm<()> +pub fn run<'a, F, G>(title: &str, w: u32, h: u32, options: Options, gnew: F) -> Erm<()> where - Fut: std::future::Future, G: state::Game + 'static, - F: (Fn(&'a context::Context) -> Fut), + F: (Fn(&'a context::Context) -> G), { env_logger::Builder::new() .filter(None, log::LevelFilter::Info) @@ -121,7 +120,7 @@ where glfw, window, gl, w as f32, h as f32, resize, ))); - let game = Box::leak(Box::new(gnew(ctx).await)); + let game = Box::leak(Box::new(gnew(ctx))); let st = Box::leak(Box::new(state::State::new(&ctx))); unsafe { -- cgit v1.2.3