mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 14:03:42 +02:00
Create symlinks on linux
This commit is contained in:
@@ -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> {
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
Reference in New Issue
Block a user