diff --git a/src/device/controller/vru.rs b/src/device/controller/vru.rs index f7dfa959..65c2e867 100644 --- a/src/device/controller/vru.rs +++ b/src/device/controller/vru.rs @@ -1,5 +1,5 @@ use crate::device; -#[cfg(feature = "gui")] +#[cfg(all(feature = "gui", not(target_os = "android")))] use crate::ui; use std::collections::HashMap; @@ -181,9 +181,9 @@ pub fn process(device: &mut device::Device, channel: usize) { device.pif.ram[device.pif.channels[channel].rx_buf.unwrap()] = 0; } JCMD_VRU_READ => { - #[cfg(feature = "gui")] + #[cfg(all(feature = "gui", not(target_os = "android")))] let index = ui::vru::prompt_for_match(&device.vru.words, device.vi.frame_time); - #[cfg(not(feature = "gui"))] + #[cfg(any(not(feature = "gui"), target_os = "android"))] let index = 0x7FFF; let num_results = if index == 0x7FFF { 0 } else { 1 }; let data: HashMap = HashMap::from([ diff --git a/src/ui.rs b/src/ui.rs index 70e472c9..30ac8987 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -14,7 +14,7 @@ pub mod retroachievements; pub mod storage; pub mod usb; pub mod video; -#[cfg(feature = "gui")] +#[cfg(all(feature = "gui", not(target_os = "android")))] pub mod vru; pub static WEB_CLIENT: std::sync::LazyLock = std::sync::LazyLock::new(|| {