mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-03-11 02:29:37 +03:00
feat(ui): used dxvk component's title field
This commit is contained in:
parent
7fb37d9252
commit
487fdd79ee
3 changed files with 11 additions and 7 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -86,8 +86,8 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anime-launcher-sdk"
|
||||
version = "0.5.9"
|
||||
source = "git+https://github.com/an-anime-team/anime-launcher-sdk?tag=0.5.9#c38fc3206a4ffa2aa1c6517a8570ea0cd92daecb"
|
||||
version = "0.5.10"
|
||||
source = "git+https://github.com/an-anime-team/anime-launcher-sdk?tag=0.5.10#186aa204d6a87a26198a00c9fb59e0a313f68227"
|
||||
dependencies = [
|
||||
"anime-game-core",
|
||||
"anyhow",
|
||||
|
|
|
@ -17,7 +17,7 @@ glib-build-tools = "0.17"
|
|||
|
||||
[dependencies.anime-launcher-sdk]
|
||||
git = "https://github.com/an-anime-team/anime-launcher-sdk"
|
||||
tag = "0.5.9"
|
||||
tag = "0.5.10"
|
||||
|
||||
# path = "../anime-launcher-sdk" # ! for dev purposes only
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ pub struct ComponentsListGroup {
|
|||
}
|
||||
|
||||
impl From<wine::Group> for ComponentsListGroup {
|
||||
#[inline]
|
||||
fn from(group: wine::Group) -> Self {
|
||||
Self {
|
||||
title: group.title,
|
||||
|
@ -34,6 +35,7 @@ impl From<wine::Group> for ComponentsListGroup {
|
|||
}
|
||||
|
||||
impl From<dxvk::Group> for ComponentsListGroup {
|
||||
#[inline]
|
||||
fn from(group: dxvk::Group) -> Self {
|
||||
Self {
|
||||
title: group.title,
|
||||
|
@ -51,23 +53,25 @@ pub struct ComponentsListVersion {
|
|||
}
|
||||
|
||||
impl From<wine::Version> for ComponentsListVersion {
|
||||
#[inline]
|
||||
fn from(version: wine::Version) -> Self {
|
||||
Self {
|
||||
name: version.name,
|
||||
title: version.title,
|
||||
uri: version.uri,
|
||||
recommended: true // FIXME
|
||||
recommended: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<dxvk::Version> for ComponentsListVersion {
|
||||
#[inline]
|
||||
fn from(version: dxvk::Version) -> Self {
|
||||
Self {
|
||||
name: version.name.clone(),
|
||||
title: version.name,
|
||||
name: version.name,
|
||||
title: version.title,
|
||||
uri: version.uri,
|
||||
recommended: true // FIXME
|
||||
recommended: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue