-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mostly LF3 support, also some code for sandboxing and TM support
- Loading branch information
Bytekeeper
committed
Apr 15, 2022
1 parent
5b3927a
commit 8977a2e
Showing
10 changed files
with
122 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
cargo build --release | ||
releng\7za a -pshotgun -- bwaishotgun.7z target/release/bwaishotgun.exe bots tools NP_DirectIP.snp game.toml shotgun.toml | ||
releng\7za a -pshotgun -- bwaishotgun.7z target/release/bwaishotgun.exe bots tools SNP_DirectIP.snp game.toml shotgun.toml | ||
releng\7za rn -pshotgun -- bwaishotgun.7z target/release/bwaishotgun.exe BWAIShotgun.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
use crate::SandboxMode; | ||
use std::ffi::OsStr; | ||
use std::process::Command; | ||
|
||
impl SandboxMode { | ||
pub fn wrap_executable(&self, exe: impl AsRef<OsStr>) -> Command { | ||
match self { | ||
SandboxMode::Sandboxie { | ||
executable, | ||
box_name, | ||
} => { | ||
let mut cmd = Command::new(executable); | ||
cmd.arg("/wait"); | ||
cmd.arg("/silent"); | ||
cmd.arg(format!("/box:{}", box_name)); | ||
cmd.arg(exe); | ||
cmd | ||
} | ||
_ => Command::new(exe), | ||
} | ||
} | ||
} |
Binary file not shown.