kitgit

tirbofish/dropbear · commit

827a107b136f26d5960399f97b59e90bdbb5fa5a

wip: got most of the runtime working, camera doesnt seem to update to my positions at all for some reason :(

Unverified

Thribhu K <4tkbytes@pm.me> · 2025-12-23 16:18

view full diff

diff --git a/Cargo.toml b/Cargo.toml
index a6f5375..f99ffd6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,7 +15,7 @@ members = [
     "eucalyptus-core",
     "eucalyptus-editor",
     "magna-carta",
-    "redback-runtime"
+#    "redback-runtime"
 ]
 
 [workspace.dependencies]
diff --git a/dropbear-engine/src/lib.rs b/dropbear-engine/src/lib.rs
index 21a10e3..e31a9d3 100644
--- a/dropbear-engine/src/lib.rs
+++ b/dropbear-engine/src/lib.rs
@@ -30,12 +30,10 @@ use futures::executor::block_on;
 use gilrs::{Gilrs, GilrsBuilder};
 use log::LevelFilter;
 use parking_lot::{Mutex, RwLock};
-use serde::{Serialize};
 use spin_sleep::SpinSleeper;
 use std::fs::OpenOptions;
-use std::io::Write;
 use std::sync::OnceLock;
-use std::{fs, sync::Arc, time::{Duration, Instant, SystemTime, UNIX_EPOCH}};
+use std::{fs, sync::Arc, time::{Duration, Instant}};
 use std::collections::HashMap;
 use std::rc::Rc;
 use wgpu::{
@@ -629,6 +627,7 @@ impl DropbearWindowBuilder {
 
 /// A struct storing the information about the application/game that is using the engine.
 pub struct App {
+    #[allow(dead_code)]
     app_data: AppInfo,
     /// The input manager, manages any inputs and their actions
     input_manager: input::Manager,
@@ -867,7 +866,7 @@ impl ApplicationHandler for App {
                         scene::SceneCommand::CloseWindow(target_window_id) => {
                             log::info!("Scene requested closing window: {:?}", target_window_id);
                             if Some(target_window_id) == self.root_window_id {
-                                log::warn!("Cannot close root window via CloseWindow command, use Quit instead");
+                                event_loop.exit();
                             } else {
                                 self.windows.remove(&target_window_id);
                             }
diff --git a/dropbear_future-queue/src/lib.rs b/dropbear_future-queue/src/lib.rs
index fb345e1..4a334c5 100644

Large diffs are not rendered by default. Showing the first 50 of 1964 lines. Show full diff