From ebd65b80f9ae05a3cffeea3677a68e9869cf327c Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Sun, 11 Sep 2022 00:41:44 +0200 Subject: Require Origin to be running to launch Northstar --- src-tauri/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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 { 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) -- cgit v1.2.3