diff --git a/src/benchmarks/games.rs b/src/benchmarks/games.rs index 6d761b2..6a3ee2b 100644 --- a/src/benchmarks/games.rs +++ b/src/benchmarks/games.rs @@ -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");