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
+3 -2
View File
@@ -37,8 +37,9 @@ impl Platform<ManifestItem, EpicGamesManifestsError> for EpicPlatform {
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),
},
}
}
}
+2 -2
View File
@@ -82,9 +82,9 @@ pub fn get_default_location() -> Option<PathBuf> {
#[cfg(target_os = "windows")]
{
let path = match location_from_registry(){
let path = match location_from_registry() {
Some(path) => path,
None => guess_default_location()
None => guess_default_location(),
};
if path.exists() {
Some(path)
+4 -4
View File
@@ -1,10 +1,10 @@
mod epic_platform;
mod get_manifests;
mod manifest_item;
mod settings;
mod epic_platform;
pub(crate) use manifest_item::*;
use get_manifests::get_egs_manifests;
pub use epic_platform::*;
pub use get_manifests::get_default_location;
use get_manifests::get_egs_manifests;
pub(crate) use manifest_item::*;
pub use settings::EpicGamesLauncherSettings;
pub use epic_platform::*;
+2 -4
View File
@@ -1,6 +1,6 @@
use serde::{Serialize,Deserialize};
use serde::{Deserialize, Serialize};
#[derive(Debug,Serialize, Deserialize,Clone)]
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct EpicGamesLauncherSettings {
pub enabled: bool,
pub location: Option<String>,
@@ -8,5 +8,3 @@ pub struct EpicGamesLauncherSettings {
#[cfg(target_os = "linux")]
pub create_symlinks: bool,
}