From 18a82df7e991ce64586bcc32afa184cbe7f9aa41 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Wed, 17 Jan 2024 02:41:15 +0100 Subject: refactor: Make launching via Steam an arg passed to backend (#753) instead of a separate dedicated function --- src-tauri/src/northstar/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src-tauri/src/northstar') diff --git a/src-tauri/src/northstar/mod.rs b/src-tauri/src/northstar/mod.rs index e707849e..ea4f4cde 100644 --- a/src-tauri/src/northstar/mod.rs +++ b/src-tauri/src/northstar/mod.rs @@ -154,10 +154,16 @@ pub fn get_northstar_version_number(game_install: GameInstall) -> Result, bypass_checks: Option, ) -> Result { dbg!(game_install.clone()); + let launch_via_steam = launch_via_steam.unwrap_or(false); + if launch_via_steam { + return launch_northstar_steam(game_install, bypass_checks); + } + let host_os = get_host_os(); // Explicitly fail early certain (currently) unsupported install setups @@ -222,7 +228,6 @@ pub fn launch_northstar( } /// Prepare Northstar and Launch through Steam using the Browser Protocol -#[tauri::command] pub fn launch_northstar_steam( game_install: GameInstall, _bypass_checks: Option, -- cgit v1.2.3