no vru on android (#930)

* no vru on android

* more

* more
This commit is contained in:
Logan McNaughton
2026-05-21 07:57:09 +02:00
committed by GitHub
parent 7ad8bed7df
commit 53b39010a0
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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<usize, u16> = HashMap::from([
+1 -1
View File
@@ -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<reqwest::Client> = std::sync::LazyLock::new(|| {