diff --git a/Cargo.toml b/Cargo.toml index 15dd39e..6be10c5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anime-launcher-sdk" -version = "1.15.0" +version = "1.15.1" authors = ["Nikita Podvirnyi "] license = "GPL-3.0" readme = "README.md" @@ -9,7 +9,7 @@ edition = "2021" [dependencies.anime-game-core] git = "https://github.com/an-anime-team/anime-game-core" -tag = "1.20.0" +tag = "1.20.1" features = ["all"] # path = "../anime-game-core" # ! for dev purposes only @@ -39,7 +39,7 @@ wuwa = ["anime-game-core/wuwa"] star-rail-patch = ["anime-game-core/patch-jadeite"] honkai-patch = ["anime-game-core/patch-jadeite"] pgr-patch = ["anime-game-core/patch-mfc140"] -wuwa-patch = ["anime-game-core/patch-mfc140"] +wuwa-patch = ["anime-game-core/patch-vcrun2015"] # Common features states = [] diff --git a/src/games/wuwa/states.rs b/src/games/wuwa/states.rs index 2c41ed4..bbe44e6 100644 --- a/src/games/wuwa/states.rs +++ b/src/games/wuwa/states.rs @@ -14,6 +14,8 @@ pub enum LauncherState { PrefixNotExists, + Vcrun2015NotInstalled, + TelemetryNotDisabled, // Always contains `VersionDiff::Diff` @@ -52,6 +54,11 @@ impl LauncherState { return Ok(Self::PrefixNotExists); } + // Check vcrun2015 installation + if !vcrun2015::is_installed(¶ms.wine_prefix) { + return Ok(Self::Vcrun2015NotInstalled); + } + // Check telemetry servers let disabled = telemetry::is_disabled(params.game_edition)