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
+2
View File
@@ -1,4 +1,6 @@
use steam_shortcuts_util::{shortcut::ShortcutOwned, Shortcut};
#[derive(Clone)]
pub struct OriginGame {
pub id: String,
pub title: String,
+10
View File
@@ -75,6 +75,16 @@ impl Platform<OriginGame, OriginErrors> for OriginPlatform {
},
}
}
fn needs_proton(&self, _input: &OriginGame) -> bool {
#[cfg(target_os = "windows")]
return false;
#[cfg(target_family = "unix")]
{
//TODO Update this when origin gets support on linux
return true;
}
}
}
fn get_folder_mfst_file_content(game_folder_path: &Path) -> Option<String> {