diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-09-11 00:41:44 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-09-11 00:41:44 +0200 |
commit | ebd65b80f9ae05a3cffeea3677a68e9869cf327c (patch) | |
tree | 2c1223c4e84137d044daa1aead29da092c6518be /src-tauri | |
parent | 504c1bc00e9d27a3df9a300ba2ebd8aa9efbb3ab (diff) | |
download | FlightCore-ebd65b80f9ae05a3cffeea3677a68e9869cf327c.tar.gz FlightCore-ebd65b80f9ae05a3cffeea3677a68e9869cf327c.zip |
Require Origin to be running to launch Northstarv0.1.0
Diffstat (limited to 'src-tauri')
-rw-r--r-- | src-tauri/src/lib.rs | 6 |
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) |