diff --git a/src/platforms/egs/epic_platform.rs b/src/platforms/egs/epic_platform.rs index 73b19fd..4179c65 100644 --- a/src/platforms/egs/epic_platform.rs +++ b/src/platforms/egs/epic_platform.rs @@ -1,5 +1,5 @@ use crate::platforms::{ - load_settings, to_shortcuts, FromSettingsString, GamesPlatform, NeedsPorton, ShortcutToImport, + load_settings, to_shortcuts, FromSettingsString, GamesPlatform, NeedsProton, ShortcutToImport, }; use super::{get_egs_manifests, settings::EpicGamesLauncherSettings, ManifestItem}; @@ -19,7 +19,7 @@ impl FromSettingsString for EpicPlatform { } } -impl NeedsPorton for ManifestItem { +impl NeedsProton for ManifestItem { fn needs_proton(&self, _platform: &EpicPlatform) -> bool { #[cfg(target_family = "unix")] return true; diff --git a/src/platforms/flatpak/platform.rs b/src/platforms/flatpak/platform.rs index 220d354..8bf3df3 100644 --- a/src/platforms/flatpak/platform.rs +++ b/src/platforms/flatpak/platform.rs @@ -1,7 +1,7 @@ use serde::{Deserialize, Serialize}; use crate::platforms::{ - load_settings, to_shortcuts, FromSettingsString, GamesPlatform, NeedsPorton, ShortcutToImport, + load_settings, to_shortcuts, FromSettingsString, GamesPlatform, NeedsProton, ShortcutToImport, }; use super::FlatpakSettings; @@ -25,7 +25,7 @@ impl From for ShortcutOwned { } } -impl NeedsPorton for FlatpakApp { +impl NeedsProton for FlatpakApp { fn needs_proton(&self, _platform: &FlatpakPlatform) -> bool { false } diff --git a/src/platforms/gog/gog_platform.rs b/src/platforms/gog/gog_platform.rs index c6797a6..cf41191 100644 --- a/src/platforms/gog/gog_platform.rs +++ b/src/platforms/gog/gog_platform.rs @@ -1,7 +1,7 @@ use std::path::{Path, PathBuf}; use crate::platforms::{ - load_settings, to_shortcuts, FromSettingsString, GamesPlatform, NeedsPorton, ShortcutToImport, + load_settings, to_shortcuts, FromSettingsString, GamesPlatform, NeedsProton, ShortcutToImport, }; use super::{ @@ -163,7 +163,7 @@ fn get_games_from_game_folders(game_folders: Vec) -> Vec<(GogGame, Path games } -impl NeedsPorton for GogShortcut { +impl NeedsProton for GogShortcut { #[cfg(target_family = "unix")] fn needs_proton(&self, _platform: &GogPlatform) -> bool { true diff --git a/src/platforms/heroic/heroic_platform.rs b/src/platforms/heroic/heroic_platform.rs index 8030dda..bc180aa 100644 --- a/src/platforms/heroic/heroic_platform.rs +++ b/src/platforms/heroic/heroic_platform.rs @@ -2,7 +2,7 @@ use serde::Deserialize; use super::{HeroicGame, HeroicGameType, HeroicSettings}; use crate::platforms::{load_settings, FromSettingsString, GamesPlatform}; -use crate::platforms::{to_shortcuts, NeedsPorton, ShortcutToImport}; +use crate::platforms::{to_shortcuts, NeedsProton, ShortcutToImport}; use std::collections::HashMap; use std::path::Path; @@ -86,7 +86,7 @@ impl HeroicPlatform { } } -impl NeedsPorton for HeroicGameType { +impl NeedsProton for HeroicGameType { #[cfg(not(target_family = "unix"))] fn needs_proton(&self, _platform: &HeroicPlatform) -> bool { false diff --git a/src/platforms/itch/itch_game.rs b/src/platforms/itch/itch_game.rs index f916a25..0a43784 100644 --- a/src/platforms/itch/itch_game.rs +++ b/src/platforms/itch/itch_game.rs @@ -3,7 +3,7 @@ use std::path::Path; use serde::{Deserialize, Serialize}; use steam_shortcuts_util::{shortcut::ShortcutOwned, Shortcut}; -use crate::platforms::NeedsPorton; +use crate::platforms::NeedsProton; use super::ItchPlatform; @@ -38,7 +38,7 @@ impl From for ShortcutOwned { } } -impl NeedsPorton for ItchGame { +impl NeedsProton for ItchGame { fn needs_proton(&self, _platform: &ItchPlatform) -> bool { self.executable.ends_with("exe") } diff --git a/src/platforms/minigalaxy/platform.rs b/src/platforms/minigalaxy/platform.rs index faca934..f83f211 100644 --- a/src/platforms/minigalaxy/platform.rs +++ b/src/platforms/minigalaxy/platform.rs @@ -1,6 +1,6 @@ use serde::{Deserialize, Serialize}; -use crate::platforms::{GamesPlatform, FromSettingsString, load_settings, GogShortcut, NeedsPorton}; +use crate::platforms::{GamesPlatform, FromSettingsString, load_settings, GogShortcut, NeedsProton}; #[derive(Clone)] pub struct MiniGalaxyPlatform { @@ -25,7 +25,7 @@ impl Default for Settings{ } -impl NeedsPorton for GogShortcut{ +impl NeedsProton for GogShortcut{ #[cfg(target_family = "unix")] fn needs_proton(&self, _platform: &MiniGalaxyPlatform) -> bool { //TODO check if we can do better than just always true @@ -117,4 +117,4 @@ fn get_default_folder_string() -> String { fn get_default_folder_path() -> eyre::Result { let home = std::env::var("HOME")?; Ok(std::path::Path::new(&home).join("GOG Games")) -} \ No newline at end of file +} diff --git a/src/platforms/origin/origin_platform.rs b/src/platforms/origin/origin_platform.rs index d8410a9..d9d1277 100644 --- a/src/platforms/origin/origin_platform.rs +++ b/src/platforms/origin/origin_platform.rs @@ -1,5 +1,5 @@ use crate::platforms::{ - load_settings, to_shortcuts, FromSettingsString, GamesPlatform, NeedsPorton, ShortcutToImport, + load_settings, to_shortcuts, FromSettingsString, GamesPlatform, NeedsProton, ShortcutToImport, }; use nom::bytes::complete::take_until; use std::{ @@ -14,7 +14,7 @@ pub struct OriginPlatform { pub settings: OriginSettings, } -impl NeedsPorton for OriginGame { +impl NeedsProton for OriginGame { #[cfg(target_os = "windows")] fn needs_proton(&self, _platform: &OriginPlatform) -> bool { false diff --git a/src/platforms/platform.rs b/src/platforms/platform.rs index b66796a..bc254a5 100644 --- a/src/platforms/platform.rs +++ b/src/platforms/platform.rs @@ -35,7 +35,7 @@ pub(crate) fn to_shortcuts( ) -> eyre::Result> where T: Into, - T: NeedsPorton

, + T: NeedsProton

, { let shortcuts = into_shortcuts?; let mut shortcut_info = vec![]; @@ -73,7 +73,7 @@ where Ok(shortcut_info) } -pub trait NeedsPorton

{ +pub trait NeedsProton

{ fn needs_proton(&self, platform: &P) -> bool; fn create_symlinks(&self, platform: &P) -> bool; diff --git a/src/platforms/uplay/platform.rs b/src/platforms/uplay/platform.rs index 6fbd5c5..45b1e21 100644 --- a/src/platforms/uplay/platform.rs +++ b/src/platforms/uplay/platform.rs @@ -7,7 +7,7 @@ use crate::platforms::load_settings; use crate::platforms::to_shortcuts_simple; use crate::platforms::FromSettingsString; use crate::platforms::GamesPlatform; -use crate::platforms::NeedsPorton; +use crate::platforms::NeedsProton; use crate::platforms::ShortcutToImport; use super::{game::UplayGame, settings::UplaySettings}; @@ -17,7 +17,7 @@ pub struct UplayPlatform { pub settings: UplaySettings, } -impl NeedsPorton for UplayGame { +impl NeedsProton for UplayGame { #[cfg(target_os = "windows")] fn needs_proton(&self, _platform: &UplayPlatform) -> bool { false