aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2022-12-20 15:03:11 +0100
committerGitHub <noreply@github.com>2022-12-20 15:03:11 +0100
commitf7b508525fc1d13bafdc3f0987aa46348ac275e7 (patch)
tree8f57d9d7f924e0f6e0b3b08978e2384c96503676
parent271c6b12172ba9e9908c21882a8790a396a6e06f (diff)
downloadFlightCore-f7b508525fc1d13bafdc3f0987aa46348ac275e7.tar.gz
FlightCore-f7b508525fc1d13bafdc3f0987aa46348ac275e7.zip
feat: Alternatively check if EA App is running (#115)
-rw-r--r--src-tauri/src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index 54f23d93..f8ea6aba 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -311,6 +311,12 @@ pub fn check_origin_running() -> bool {
for _process in s.processes_by_name("Origin.exe") {
// check here if this is your process
// dbg!(process);
+ // There's at least one Origin process, so we can launch
+ return true;
+ }
+ // Alternatively, check for EA Desktop
+ for _process in s.processes_by_name("EADesktop.exe") {
+ // There's at least one EADesktop process, so we can launch
return true;
}
false