feat(honkai): added concerning jadeite patch status integration

This commit is contained in:
Observer KRypt0n_ 2023-12-29 22:34:35 +02:00
parent fae9497c43
commit 560ca3249e
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2

View file

@ -15,6 +15,7 @@ pub enum LauncherState {
PatchNotVerified, PatchNotVerified,
PatchBroken, PatchBroken,
PatchUnsafe, PatchUnsafe,
PatchConcerning,
PatchNotInstalled, PatchNotInstalled,
PatchUpdateAvailable, PatchUpdateAvailable,
@ -109,10 +110,11 @@ impl LauncherState {
} }
match metadata.games.hi3rd.global.get_status(version) { match metadata.games.hi3rd.global.get_status(version) {
JadeitePatchStatusVariant::Verified => Ok(Self::Launch), JadeitePatchStatusVariant::Verified => Ok(Self::Launch),
JadeitePatchStatusVariant::Unverified => Ok(Self::PatchNotVerified), JadeitePatchStatusVariant::Unverified => Ok(Self::PatchNotVerified),
JadeitePatchStatusVariant::Broken => Ok(Self::PatchBroken), JadeitePatchStatusVariant::Broken => Ok(Self::PatchBroken),
JadeitePatchStatusVariant::Unsafe => Ok(Self::PatchUnsafe) JadeitePatchStatusVariant::Unsafe => Ok(Self::PatchUnsafe),
JadeitePatchStatusVariant::Concerning => Ok(Self::PatchConcerning)
} }
} }