Create symlinks on linux

This commit is contained in:
Philip Kristoffersen
2021-10-06 10:00:57 +02:00
parent 206d900ef1
commit 53021a177a
11 changed files with 109 additions and 12 deletions
+5
View File
@@ -27,4 +27,9 @@ impl Platform<ManifestItem, EpicGamesManifestsError> for EpicPlatform {
fn get_shortcuts(&self) -> Result<Vec<ManifestItem>, EpicGamesManifestsError> {
get_egs_manifests(&self.settings)
}
#[cfg(target_os = "linux")]
fn create_symlinks(&self) -> bool {
self.settings.create_symlinks
}
}
+3
View File
@@ -4,6 +4,9 @@ use serde::{Serialize,Deserialize};
pub struct EpicGamesLauncherSettings {
pub enabled: bool,
pub location: Option<String>,
#[cfg(target_os = "linux")]
pub create_symlinks: bool,
}