diff --git a/Cargo.lock b/Cargo.lock index 1f5b91e..c205991 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -31,7 +31,7 @@ dependencies = [ [[package]] name = "anime-game-core" -version = "1.1.9" +version = "1.2.0" dependencies = [ "anyhow", "bzip2", diff --git a/anime-game-core b/anime-game-core index 66b0e5f..6f2c976 160000 --- a/anime-game-core +++ b/anime-game-core @@ -1 +1 @@ -Subproject commit 66b0e5f9c44a7d3247010b9a830f386f715b5ac5 +Subproject commit 6f2c976003893603a7ac795deb6367db30595503 diff --git a/components b/components index 6ae7311..7ea12b3 160000 --- a/components +++ b/components @@ -1 +1 @@ -Subproject commit 6ae731151cf1562877e5cb84896f3b5d3f001c6c +Subproject commit 7ea12b348400ce9524d21d225a85695512bf997f diff --git a/src/lib/dxvk.rs b/src/lib/dxvk.rs index 42c71f9..edd7dea 100644 --- a/src/lib/dxvk.rs +++ b/src/lib/dxvk.rs @@ -14,12 +14,12 @@ lazy_static! { Group { title: String::from("Vanilla"), subtitle: None, - versions: serde_json::from_str(include_str!("../../components/dxvk/vanilla.json")).unwrap() + versions: serde_json::from_str::>(include_str!("../../components/dxvk/vanilla.json")).unwrap().into_iter().take(12).collect() }, Group { title: String::from("Async"), subtitle: Some(String::from("This version is not recommended for usage as can lead to anti-cheat detection. Automatically uses DXVK_ASYNC=1")), - versions: serde_json::from_str(include_str!("../../components/dxvk/async.json")).unwrap() + versions: serde_json::from_str::>(include_str!("../../components/dxvk/async.json")).unwrap().into_iter().take(12).collect() } ]; } diff --git a/src/lib/wine.rs b/src/lib/wine.rs index c92020d..0d38a37 100644 --- a/src/lib/wine.rs +++ b/src/lib/wine.rs @@ -9,22 +9,22 @@ lazy_static::lazy_static! { Group { title: String::from("Wine-GE-Proton"), subtitle: None, - versions: serde_json::from_str(include_str!("../../components/wine/wine-ge-proton.json")).unwrap() + versions: serde_json::from_str::>(include_str!("../../components/wine/wine-ge-proton.json")).unwrap().into_iter().take(12).collect() }, Group { title: String::from("GE-Proton"), subtitle: Some(String::from("This version includes its own DXVK builds and you can use DXVK_ASYNC variable")), - versions: serde_json::from_str(include_str!("../../components/wine/ge-proton.json")).unwrap() + versions: serde_json::from_str::>(include_str!("../../components/wine/ge-proton.json")).unwrap().into_iter().take(12).collect() }, Group { title: String::from("Soda"), - subtitle: Some(String::from("New runner based on Valveā€™s Wine, with patches from Proton, TKG and GE. Developed by Bottles")), - versions: serde_json::from_str(include_str!("../../components/wine/soda.json")).unwrap() + subtitle: Some(String::from("New runner based on Valve's Wine, with patches from Proton, TKG and GE. Developed by Bottles")), + versions: serde_json::from_str::>(include_str!("../../components/wine/soda.json")).unwrap().into_iter().take(12).collect() }, Group { title: String::from("Lutris"), subtitle: None, - versions: serde_json::from_str(include_str!("../../components/wine/lutris.json")).unwrap() + versions: serde_json::from_str::>(include_str!("../../components/wine/lutris.json")).unwrap().into_iter().take(12).collect() } ]; }