Add Heroic support (#46)

This commit is contained in:
Philip Kristoffersen
2022-03-17 16:51:38 +01:00
committed by GitHub
parent 3f5c99c30e
commit d0b76b664c
12 changed files with 275 additions and 15 deletions
+7 -1
View File
@@ -8,7 +8,7 @@ use crate::{
settings::Settings,
steam::{get_shortcuts_for_user, get_shortcuts_paths, ShortcutInfo, SteamUsersInfo},
steamgriddb::download_images_for_users,
uplay::Uplay,
uplay::Uplay, heroic::HeroicPlatform,
};
use std::error::Error;
@@ -119,6 +119,12 @@ fn update_platforms(settings: &Settings, new_user_shortcuts: &mut Vec<ShortcutOw
},
new_user_shortcuts,
);
update_platform_shortcuts(
&HeroicPlatform {
settings: settings.heroic.clone(),
},
new_user_shortcuts,
);
}
fn save_shortcuts(shortcuts: &[ShortcutOwned], path: &Path) {