aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/northstar
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2024-02-12 01:52:00 +0100
committerGitHub <noreply@github.com>2024-02-12 01:52:00 +0100
commita5625d19ff81d98303c94cee4519343a2c3fc3cb (patch)
treebb8e53640fc905da2e808fc49ae8c1f3a3490b3a /src-tauri/src/northstar
parent205c3e3e6382de53e267ead750f2fe92cca06725 (diff)
downloadFlightCore-a5625d19ff81d98303c94cee4519343a2c3fc3cb.tar.gz
FlightCore-a5625d19ff81d98303c94cee4519343a2c3fc3cb.zip
refactor: Remove unused arg (#796)
`bypass_checks` was never used for `launch_northstar_steam`
Diffstat (limited to 'src-tauri/src/northstar')
-rw-r--r--src-tauri/src/northstar/mod.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src-tauri/src/northstar/mod.rs b/src-tauri/src/northstar/mod.rs
index 9191c595..9837ece4 100644
--- a/src-tauri/src/northstar/mod.rs
+++ b/src-tauri/src/northstar/mod.rs
@@ -157,7 +157,7 @@ pub fn launch_northstar(
let launch_via_steam = launch_via_steam.unwrap_or(false);
if launch_via_steam {
- return launch_northstar_steam(game_install, bypass_checks);
+ return launch_northstar_steam(game_install);
}
let host_os = get_host_os();
@@ -172,7 +172,7 @@ pub fn launch_northstar(
));
}
- return launch_northstar_steam(game_install, bypass_checks);
+ return launch_northstar_steam(game_install);
}
let bypass_checks = bypass_checks.unwrap_or(false);
@@ -224,10 +224,7 @@ pub fn launch_northstar(
}
/// Prepare Northstar and Launch through Steam using the Browser Protocol
-pub fn launch_northstar_steam(
- game_install: GameInstall,
- _bypass_checks: Option<bool>,
-) -> Result<String, String> {
+pub fn launch_northstar_steam(game_install: GameInstall) -> Result<String, String> {
if !matches!(game_install.install_type, InstallType::STEAM) {
return Err("Titanfall2 was not installed via Steam".to_string());
}