aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-11 00:41:44 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-11 00:41:44 +0200
commitebd65b80f9ae05a3cffeea3677a68e9869cf327c (patch)
tree2c1223c4e84137d044daa1aead29da092c6518be
parent504c1bc00e9d27a3df9a300ba2ebd8aa9efbb3ab (diff)
downloadFlightCore-ebd65b80f9ae05a3cffeea3677a68e9869cf327c.tar.gz
FlightCore-ebd65b80f9ae05a3cffeea3677a68e9869cf327c.zip
Require Origin to be running to launch Northstarv0.1.0
-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 61b4fb65..bb120927 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -269,6 +269,12 @@ pub fn launch_northstar(game_install: GameInstall) -> Result<String, String> {
return Err(anyhow!("Couldn't access Titanfall2 directory").to_string());
}
+ // Require Origin to be running to launch Northstar
+ let origin_is_running = check_origin_running();
+ if !origin_is_running {
+ return Err(anyhow!("Origin not running, start Origin before launching Northstar").to_string());
+ }
+
// Only Windows with Steam or Origin are supported at the moment
if host_os == "windows"
&& (matches!(game_install.install_type, InstallType::STEAM)