kitgit

tirbofish/dropbear · commit

2993ca2170331eeee4b6982cbf84501017e46fd2

started on getCamera function, handing it over now

Unverified

tk <4tkbytes@pm.me> · 2025-10-21 08:28

view full diff

diff --git a/Cargo.toml b/Cargo.toml
index 2d688e0..ecfbbed 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -65,6 +65,7 @@ indexmap = "2.11"
 rand = "0.9"
 num_enum = "0.7"
 sha2 = "0.10"
+stdext = "0.3"
 
 [workspace.dependencies.image]
 version = "0.25"
diff --git a/eucalyptus-core/Cargo.toml b/eucalyptus-core/Cargo.toml
index 64567d9..71d3281 100644
--- a/eucalyptus-core/Cargo.toml
+++ b/eucalyptus-core/Cargo.toml
@@ -32,7 +32,7 @@ sha2.workspace = true
 libloading.workspace = true
 crossbeam-channel.workspace = true
 app_dirs2.workspace = true
-num_enum.workspace = true
+stdext.workspace = true
 
 [features]
 # editor only stuff
diff --git a/eucalyptus-core/src/lib.rs b/eucalyptus-core/src/lib.rs
index 0c2bfe9..e18ae6b 100644
--- a/eucalyptus-core/src/lib.rs
+++ b/eucalyptus-core/src/lib.rs
@@ -7,6 +7,7 @@ pub mod spawn;
 pub mod states;
 pub mod utils;
 pub mod ptr;
+mod result;
 
 pub use egui;
 
diff --git a/eucalyptus-core/src/result.rs b/eucalyptus-core/src/result.rs
new file mode 100644
index 0000000..f576625
--- /dev/null
+++ b/eucalyptus-core/src/result.rs
@@ -0,0 +1,80 @@
+use std::ptr;
+use jni::objects::{JClass, JObject, JString};
+
+/// Trait used by the `jni` crate for easier error matching.
+pub trait ResultToNull {
+    type Output;
+

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