diff --git a/src/games/wuwa/states.rs b/src/games/wuwa/states.rs index c95b747..2c41ed4 100644 --- a/src/games/wuwa/states.rs +++ b/src/games/wuwa/states.rs @@ -1,7 +1,5 @@ use std::path::PathBuf; -use wincompatlib::wine::ext::Font; - use anime_game_core::prelude::*; use anime_game_core::wuwa::prelude::*; @@ -16,8 +14,6 @@ pub enum LauncherState { PrefixNotExists, - FontsNotInstalled(Vec), - TelemetryNotDisabled, // Always contains `VersionDiff::Diff` @@ -48,41 +44,12 @@ impl LauncherState { pub fn get(params: LauncherStateParams) -> anyhow::Result { tracing::debug!("Trying to get launcher state"); - // Check prefix existence - if !params.wine_prefix.join("drive_c").exists() { - return Ok(Self::PrefixNotExists); - } - // Check wine components installation status (params.status_updater)(StateUpdating::Components); - let mut fonts = Vec::new(); - - // In future, wincompatlib's Font might contain fonts that won't be actually needed - // That's why I listed only needed fonts here - const COREFONTS: &[Font] = &[ - Font::Andale, - Font::Arial, - Font::Courier, - Font::Georgia, - Font::Impact, - Font::Times, - Font::Trebuchet, - Font::Verdana, - Font::Webdings, - - // Who even needs it? - Font::ComicSans - ]; - - for font in COREFONTS.iter().copied() { - if !font.is_installed(¶ms.wine_prefix) { - fonts.push(font); - } - } - - if !fonts.is_empty() { - return Ok(Self::FontsNotInstalled(fonts)); + // Check prefix existence + if !params.wine_prefix.join("drive_c").exists() { + return Ok(Self::PrefixNotExists); } // Check telemetry servers