- fixed game running issue if you have spaces in paths
This commit is contained in:
Observer KRypt0n_ 2023-04-17 11:23:19 +02:00
parent fdef611ea9
commit 5d4e541db4
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2
3 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "anime-launcher-sdk"
version = "1.0.3"
version = "1.0.4"
authors = ["Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>"]
license = "GPL-3.0"
readme = "README.md"

View file

@ -133,7 +133,7 @@ pub fn run() -> anyhow::Result<()> {
let run_command = features.command
.map(|command| replace_keywords(command, &folders))
.unwrap_or(folders.wine.join(wine.files.wine64.unwrap_or(wine.files.wine)).to_string_lossy().to_string());
.unwrap_or(format!("'{}'", folders.wine.join(wine.files.wine64.unwrap_or(wine.files.wine)).to_string_lossy()));
bash_command += &run_command;
bash_command += " ";

View file

@ -73,7 +73,7 @@ pub fn run() -> anyhow::Result<()> {
let run_command = features.command
.map(|command| replace_keywords(command, &folders))
.unwrap_or(folders.wine.join(wine.files.wine64.unwrap_or(wine.files.wine)).to_string_lossy().to_string());
.unwrap_or(format!("'{}'", folders.wine.join(wine.files.wine64.unwrap_or(wine.files.wine)).to_string_lossy()));
bash_command += &run_command;
bash_command += " ";