Epic safe launch (#85)

This feature lets users force some Epic Games to be launched through the Epic Launcher
This commit is contained in:
Philip Kristoffersen
2022-04-18 14:00:06 +02:00
committed by GitHub
parent 03aab2e088
commit e9d10499f2
7 changed files with 212 additions and 118 deletions
+5
View File
@@ -44,6 +44,11 @@ pub(crate) fn get_egs_manifests(
let mut manifests : Vec<ManifestItem> = manifests.collect();
manifests.sort_by_key(|m| format!("{}-{}-{}",m.install_location,m.launch_executable,m.is_managed));
manifests.dedup_by_key(|m| format!("{}-{}-{}",m.install_location,m.launch_executable,m.is_managed));
for mut manifest in &mut manifests{
if settings.safe_launch.contains(&manifest.display_name) || settings.safe_launch.contains(&manifest.get_key()){
manifest.safe_launch = true;
}
}
Ok(manifests)
}
Err(err) => Err(ReadDirError {