Open urls with exe (#146)

* Launch Epic Games in safe mode through the exe

* Launch through exe for amazon games

* Remove unused comment

* Launch Uplay games through exe

* Fix epic tests

* Always launch origin games through the exe

* Fix that compat_folder is an option on unix
This commit is contained in:
Philip Kristoffersen
2022-05-22 14:53:23 +02:00
committed by GitHub
parent f2c83cb107
commit d1389fd757
12 changed files with 233 additions and 56 deletions
+14
View File
@@ -258,6 +258,20 @@ impl MyEguiApp {
epic_settings.location = Some(epic_location.to_string());
}
});
ui.horizontal(|ui| {
let mut empty_string = "".to_string();
let epic_location = epic_settings.launcher_exe.as_mut().unwrap_or(&mut empty_string);
ui.label("Epic Launcher Location: ").on_hover_text(
"The location of the Epic launcher exe",
);
if ui.text_edit_singleline(epic_location).changed() {
if epic_location.is_empty(){
epic_settings.launcher_exe = None;
}else{
epic_settings.launcher_exe = Some(epic_location.to_string());
}
}
});
let safe_mode_header = match epic_settings.safe_launch.len() {
0 => "Force games to launch through Epic Launcher".to_string(),