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
@@ -55,6 +55,11 @@ impl Platform<ItchGame, ItchErrors> for ItchPlatform {
let res = paths.iter().filter_map(|e| dbpath_to_game(*e)).collect();
Ok(res)
}
#[cfg(target_os = "linux")]
fn create_symlinks(&self) -> bool {
self.settings.create_symlinks
}
}
fn dbpath_to_game(paths: &DbPaths<'_>) -> Option<ItchGame> {
+2
View File
@@ -4,4 +4,6 @@ use serde::{Serialize,Deserialize};
pub struct ItchSettings {
pub enabled: bool,
pub location: Option<String>,
#[cfg(target_os = "linux")]
pub create_symlinks: bool,
}