Initial Origin Support

This commit is contained in:
Philip
2021-10-01 22:26:29 +02:00
parent 272e198e85
commit d7deae57ad
8 changed files with 175 additions and 9 deletions
+9
View File
@@ -1,11 +1,13 @@
use crate::{
itch::ItchPlatform,
origin::OriginPlatform,
steamgriddb::{download_images, CachedSearch},
};
use std::{fs::File, io::Write, path::Path};
mod egs;
mod itch;
mod legendary;
mod origin;
mod platform;
mod settings;
mod steam;
@@ -93,6 +95,13 @@ async fn run_sync() -> Result<(), Box<dyn Error>> {
&mut new_user_shortcuts,
);
update_platform_shortcuts(
&OriginPlatform {
settings: settings.origin.clone(),
},
&mut new_user_shortcuts,
);
let shortcuts = new_user_shortcuts.iter().map(|f| f.borrow()).collect();
save_shortcuts(&shortcuts, Path::new(&shortcut_info.path));