Proton support (#64)

Enable proton for heroic games
This commit is contained in:
Philip Kristoffersen
2022-03-31 17:33:33 +02:00
committed by GitHub
parent 704d5b5758
commit b58cbc51e0
24 changed files with 589 additions and 156 deletions
+1
View File
@@ -25,6 +25,7 @@ pub(crate) struct PlayTask {
pub working_dir: Option<String>,
}
#[derive(Clone)]
pub(crate) struct GogShortcut {
pub name: String,
pub game_folder: String,
+7
View File
@@ -149,6 +149,13 @@ impl Platform<GogShortcut, GogErrors> for GogPlatform {
},
}
}
fn needs_proton(&self, _input: &GogShortcut) -> bool {
#[cfg(target_family = "unix")]
return true;
#[cfg(target_os = "windows")]
return false;
}
}
#[cfg(target_family = "unix")]