- added vcrun2015 integration for wuwa
This commit is contained in:
Nikita Podvirnyi 2024-06-28 23:20:59 +02:00
parent 0a5429a633
commit cf97861f7a
No known key found for this signature in database
GPG key ID: 859D416E5142AFF3
2 changed files with 10 additions and 3 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "anime-launcher-sdk"
version = "1.15.0"
version = "1.15.1"
authors = ["Nikita Podvirnyi <krypt0nn@vk.com>"]
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 = []

View file

@ -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(&params.wine_prefix) {
return Ok(Self::Vcrun2015NotInstalled);
}
// Check telemetry servers
let disabled = telemetry::is_disabled(params.game_edition)