mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Epic safe launch (#85)
This feature lets users force some Epic Games to be launched through the Epic Launcher
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user