Add uplay syncrhonization

This commit is contained in:
Philip
2022-01-02 10:37:12 +01:00
parent f60a591180
commit dd21e56fd6
36 changed files with 225 additions and 97 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
pub(crate) struct GogConfig {
#[serde(alias = "installationPaths")]
pub installation_paths: Option<Vec<String>>,
#[serde(alias = "libraryPath")]
pub library_path: Option<String>,
}
+2 -3
View File
@@ -22,15 +22,14 @@ pub(crate) struct PlayTask {
#[serde(alias = "type")]
pub task_type: String,
#[serde(alias = "workingDir")]
pub working_dir: Option<String>,
pub working_dir: Option<String>,
}
pub(crate) struct GogShortcut {
pub name: String,
pub game_folder: String,
pub path: String,
pub working_dir:String,
pub working_dir: String,
pub game_id: String,
}
+3 -1
View File
@@ -144,7 +144,9 @@ impl Platform<GogShortcut, GogErrors> for GogPlatform {
let shortcuts_res = self.get_shortcuts();
match shortcuts_res {
Ok(_) => SettingsValidity::Valid,
Err(err) => SettingsValidity::Invalid{reason:format!("{}",err)},
Err(err) => SettingsValidity::Invalid {
reason: format!("{}", err),
},
}
}
}
-1
View File
@@ -7,5 +7,4 @@ pub struct GogSettings {
pub wine_c_drive: Option<String>,
#[cfg(target_os = "linux")]
pub create_symlinks: bool,
}