macOS Support (#18)

* replace target_os = "linux" with target_family = "unix"

* check correct dir for macos steam files
This commit is contained in:
Ankush Gupta
2022-03-10 06:21:28 +01:00
committed by GitHub
parent f77f1e6bab
commit c188c6f385
16 changed files with 40 additions and 28 deletions
+3 -3
View File
@@ -9,7 +9,7 @@ pub struct Uplay {
impl Platform<Game, Box<dyn Error>> for Uplay {
fn enabled(&self) -> bool {
#[cfg(target_os = "linux")]
#[cfg(target_family = "unix")]
{
false
}
@@ -28,7 +28,7 @@ impl Platform<Game, Box<dyn Error>> for Uplay {
}
fn get_shortcuts(&self) -> Result<Vec<Game>, Box<dyn Error>> {
#[cfg(target_os = "linux")]
#[cfg(target_family = "unix")]
{
Ok(vec![])
}
@@ -38,7 +38,7 @@ impl Platform<Game, Box<dyn Error>> for Uplay {
}
}
#[cfg(target_os = "linux")]
#[cfg(target_family = "unix")]
fn create_symlinks(&self) -> bool {
false
}