Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

The window's open on Linux and Windows is raea_io_os's open_url itself, and its stub the clipboard's (two functions of one shape, the dupes check)

shinyobjectzfdf58ffa168d
diff --git a/engine/page/window/src/other.rs b/engine/page/window/src/other.rs
index fa4c6c33..17c68423 100644
--- a/engine/page/window/src/other.rs
+++ b/engine/page/window/src/other.rs
@@ -15,9 +15,7 @@ pub fn clipboard_read() -> String {
raea_io_os::clipboard_text().unwrap_or_default()
}
#[cfg(feature = "window")]
-pub fn open(url: &str) -> Result<(), String> {
- raea_io_os::open_url(url)
-}
+pub use raea_io_os::open_url as open;
#[cfg(not(feature = "window"))]
pub fn clipboard_write(_: &str) -> Result<(), String> {
Ok(())
@@ -27,9 +25,7 @@ pub fn clipboard_read() -> String {
String::new()
}
#[cfg(not(feature = "window"))]
-pub fn open(_: &str) -> Result<(), String> {
- Ok(())
-}
+pub use self::clipboard_write as open;
pub fn badge(_: &str) {}
pub fn notify(_: &str, _: &str) -> Result<(), String> {
Err("notifications need raea's window on a Mac".into())