Skip to content

Commit

Permalink
add default sc2path on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
UltraMachine committed Nov 28, 2023
1 parent cce2fa1 commit cf17a9a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ pub fn get_path_to_sc2() -> String {

"C:/Program Files (x86)/StarCraft II".to_string()
}
#[cfg(unix)]
#[cfg(target_os = "linux")]
{
format!("{}/StarCraftII", home_dir().unwrap().to_str().unwrap())
}
#[cfg(target_os = "macos")]
{
"/Applications/Starcraft II".to_string()
}
}
}
}
Expand Down

0 comments on commit cf17a9a

Please sign in to comment.