mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Add uplay syncrhonization
This commit is contained in:
@@ -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),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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
@@ -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
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user