- fixed honkers sandbox launching
This commit is contained in:
Observer KRypt0n_ 2023-04-17 15:31:02 +02:00
parent 3505a2ef55
commit 2a8272c1af
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -121,13 +121,13 @@ pub fn run() -> anyhow::Result<()> {
.replace(folders.game.to_str().unwrap(), sandboxed_folders.game.to_str().unwrap()) .replace(folders.game.to_str().unwrap(), sandboxed_folders.game.to_str().unwrap())
.replace(folders.temp.to_str().unwrap(), sandboxed_folders.temp.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; folders = sandboxed_folders;
} }
// Bundle all windows arguments used to run the game into a single file // Bundle all windows arguments used to run the game into a single file
if features.compact_launch { 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"); windows_command = String::from("compact_launch.bat");
} }