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
@@ -1,5 +1,6 @@
use steam_shortcuts_util::shortcut::{Shortcut, ShortcutOwned};
#[derive(Clone)]
pub(crate) struct Game {
pub(crate) name: String,
pub(crate) icon: String,
+10
View File
@@ -42,6 +42,16 @@ impl Platform<Game, Box<dyn Error>> for Uplay {
fn create_symlinks(&self) -> bool {
false
}
fn needs_proton(&self, _input: &Game) -> bool {
#[cfg(target_os = "windows")]
return false;
#[cfg(target_family = "unix")]
{
//TODO update this when uplay gets proton support on linux
return true;
}
}
}
#[cfg(target_os = "windows")]