Made the Steam game download function work for both Windows and Linux
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
4aa3eddc91
commit
7b7150886a
@ -17,8 +17,13 @@ pub fn run_demd_benchmark() {
|
||||
}
|
||||
|
||||
fn download_game_steam(game_id: u32) {
|
||||
let mut steam_path = "steam";
|
||||
if cfg!(windows) {
|
||||
steam_path = "C:\\Program Files (x86)\\Steam\\steam.exe";
|
||||
}
|
||||
|
||||
// first we need to make sure CS:GO is installed via Steam
|
||||
let install_output = Command::new("C:\\Program Files (x86)\\Steam\\steam.exe")
|
||||
let install_output = Command::new(steam_path)
|
||||
.arg(format!("steam://install/{}", game_id))
|
||||
.output()
|
||||
.expect("Failed to execute command");
|
||||
|
Loading…
Reference in New Issue
Block a user