From b89557b450a9e61fad73b095abb43a1005c7809a Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Wed, 22 Nov 2023 12:37:32 +1100 Subject: [PATCH] add "force-crossplatform-ui" feature (no crossplatform ui yet though lol) --- gb-emu/Cargo.toml | 1 + gb-emu/src/bin/gui.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gb-emu/Cargo.toml b/gb-emu/Cargo.toml index 2f56d53..486691f 100644 --- a/gb-emu/Cargo.toml +++ b/gb-emu/Cargo.toml @@ -21,6 +21,7 @@ vulkan = [ ] vulkan-static = ["vulkan", "gb-emu-lib/vulkan-static"] camera = ["dep:nokhwa", "dep:send_wrapper"] +force-crossplatform-ui = [] [dependencies] gb-emu-lib = { workspace = true } diff --git a/gb-emu/src/bin/gui.rs b/gb-emu/src/bin/gui.rs index bfa18f2..4e41b6b 100644 --- a/gb-emu/src/bin/gui.rs +++ b/gb-emu/src/bin/gui.rs @@ -1,7 +1,7 @@ -#[cfg(target_os = "macos")] +#[cfg(all(target_os = "macos", not(target_feature = "force-crossplatform-ui")))] mod macos; fn main() { - #[cfg(target_os = "macos")] + #[cfg(all(target_os = "macos", not(target_feature = "force-crossplatform-ui")))] cacao::appkit::App::new("com.alexjanka.cacao-test", macos::TwincUiApp::default()).run(); }