kitgit

tirbofish/dropbear · commit

4667c90d3e54534095bb4f6cfb654aecd9886cfc

fix: fixed some editor and project settings stuff, which means HistoricalOption was implemented as a new type. Unverified

Thribhu K <4tkbytes@pm.me> · 2026-01-12 15:20

view full diff

diff --git a/.sdkmanrc b/.sdkmanrc
new file mode 100644
index 0000000..5a6900d
--- /dev/null
+++ b/.sdkmanrc
@@ -0,0 +1,3 @@
+# Enable auto-env through the sdkman_auto_env config
+# Add key=value pairs of SDKs to use below
+java=21.0.9-tem
diff --git a/dropbear-engine/src/lib.rs b/dropbear-engine/src/lib.rs
index 20e5cd0..f9f6107 100644
--- a/dropbear-engine/src/lib.rs
+++ b/dropbear-engine/src/lib.rs
@@ -931,6 +931,9 @@ impl ApplicationHandler for App {
                                 self.windows.remove(&target_window_id);
                             }
                         }
+                        scene::SceneCommand::SetFPS(new_fps) => {
+                            self.set_target_fps(new_fps);
+                        }
                         _ => {}
                     }
                 }
diff --git a/dropbear-engine/src/scene.rs b/dropbear-engine/src/scene.rs
index 21647b8..9058d3e 100644
--- a/dropbear-engine/src/scene.rs
+++ b/dropbear-engine/src/scene.rs
@@ -33,6 +33,7 @@ pub enum SceneCommand {
     DebugMessage(String),
     RequestWindow(WindowData),
     CloseWindow(WindowId),
+    SetFPS(u32),
 }
 
 impl Default for SceneCommand {
@@ -145,7 +146,7 @@ impl Manager {
                 }
                 SceneCommand::None => {}
                 SceneCommand::DebugMessage(msg) => log::debug!("{}", msg),
-                SceneCommand::RequestWindow(_) | SceneCommand::CloseWindow(_) => {
+                SceneCommand::RequestWindow(_) | SceneCommand::CloseWindow(_) | SceneCommand::SetFPS(_) => {
                     return vec![command];
                 }
             }
diff --git a/eucalyptus-core/src/runtime.rs b/eucalyptus-core/src/runtime.rs
index e2cceee..9532ce5 100644
--- a/eucalyptus-core/src/runtime.rs
+++ b/eucalyptus-core/src/runtime.rs
@@ -4,6 +4,7 @@ use crate::scene::SceneConfig;
 use crate::states::{PROJECT, SCENES};

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