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(); }