From b178f1050ae24b8de899adaf0f6f52ffcf6d8b53 Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Tue, 25 Apr 2023 18:30:02 +0200 Subject: [PATCH] 1.1.2 - fixed wine features parsing --- Cargo.toml | 2 +- src/star_rail/game.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ef8c339..42e348e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anime-launcher-sdk" -version = "1.1.1" +version = "1.1.2" authors = ["Nikita Podvirnyy "] license = "GPL-3.0" readme = "README.md" diff --git a/src/star_rail/game.rs b/src/star_rail/game.rs index 5e5edd2..ec080f8 100644 --- a/src/star_rail/game.rs +++ b/src/star_rail/game.rs @@ -46,7 +46,7 @@ pub fn run() -> anyhow::Result<()> { anyhow::bail!("Couldn't find wine executable"); }; - let features = wine.features(&game_path)?.unwrap_or_default(); + let features = wine.features(&config.components.path)?.unwrap_or_default(); let mut folders = Folders { wine: config.game.wine.builds.join(&wine.name), @@ -79,7 +79,7 @@ pub fn run() -> anyhow::Result<()> { bash_command += &run_command; bash_command += " "; - if let Some(virtual_desktop) = config.game.wine.virtual_desktop.get_command("an_anime_game") { + if let Some(virtual_desktop) = config.game.wine.virtual_desktop.get_command("star_rail") { windows_command += &virtual_desktop; windows_command += " "; }