diff --git a/Cargo.toml b/Cargo.toml index 9d1f26e..dc60a14 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anime-launcher-sdk" -version = "1.0.5" +version = "1.0.6" authors = ["Nikita Podvirnyy "] license = "GPL-3.0" readme = "README.md" diff --git a/src/honkai/game.rs b/src/honkai/game.rs index 919d6c0..e0405d4 100644 --- a/src/honkai/game.rs +++ b/src/honkai/game.rs @@ -121,13 +121,13 @@ pub fn run() -> anyhow::Result<()> { .replace(folders.game.to_str().unwrap(), sandboxed_folders.game.to_str().unwrap()) .replace(folders.temp.to_str().unwrap(), sandboxed_folders.temp.to_str().unwrap()); - bash_command = format!("{bwrap} -- {bash_command}"); + bash_command = format!("{bwrap} --chdir /tmp/sandbox/game -- {bash_command}"); folders = sandboxed_folders; } // Bundle all windows arguments used to run the game into a single file if features.compact_launch { - std::fs::write(config.game.path.join("compact_launch.bat"), format!("start {windows_command}\nexit"))?; + std::fs::write(folders.game.join("compact_launch.bat"), format!("start {windows_command}\nexit"))?; windows_command = String::from("compact_launch.bat"); }