diff --git a/Cargo.toml b/Cargo.toml index 7d32393..1653450 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ edition = "2021" [dependencies.anime-game-core] git = "https://github.com/an-anime-team/anime-game-core" -tag = "1.11.6" +tag = "1.11.7" features = ["all"] # path = "../anime-game-core" # ! for dev purposes only diff --git a/src/components/dxvk.rs b/src/components/dxvk.rs index 31a01ad..53e2ba6 100644 --- a/src/components/dxvk.rs +++ b/src/components/dxvk.rs @@ -93,6 +93,7 @@ pub struct Version { pub title: String, pub version: String, pub uri: String, + pub format: Option, pub features: Option } diff --git a/src/components/loader.rs b/src/components/loader.rs index 8138f55..0605851 100644 --- a/src/components/loader.rs +++ b/src/components/loader.rs @@ -48,6 +48,7 @@ pub fn get_wine_versions(index: &Path) -> anyhow::Result> { name: version["name"].as_str().unwrap().to_string(), title: version["title"].as_str().unwrap().to_string(), uri: version["uri"].as_str().unwrap().to_string(), + format: version["format"].as_str().map(|str| str.to_string()), files: serde_json::from_value::(version["files"].to_owned())?, features: version.get("features").map(|v| v.into()) }); @@ -119,6 +120,7 @@ pub fn get_dxvk_versions(index: &Path) -> anyhow::Result> { title: version["title"].as_str().unwrap().to_string(), version: version["version"].as_str().unwrap().to_string(), uri: version["uri"].as_str().unwrap().to_string(), + format: version["format"].as_str().map(|str| str.to_string()), features: version.get("features").map(|v| v.into()) }); } diff --git a/src/components/wine/mod.rs b/src/components/wine/mod.rs index 95d14c0..01b25b0 100644 --- a/src/components/wine/mod.rs +++ b/src/components/wine/mod.rs @@ -147,6 +147,7 @@ pub struct Version { pub name: String, pub title: String, pub uri: String, + pub format: Option, pub files: Files, pub features: Option }