diff options
author | Jan <sentrycraft123@gmail.com> | 2023-04-06 15:06:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-06 15:06:38 +0200 |
commit | dd1e870b279f990981dcbaff79c9db58fde18ba9 (patch) | |
tree | 72ac9445ee21d368d304aee0dcaa3bc8da32d03e /src-tauri/src/main.rs | |
parent | ad19a08e24817c4e7256174c77316829f86bb0d3 (diff) | |
download | FlightCore-dd1e870b279f990981dcbaff79c9db58fde18ba9.tar.gz FlightCore-dd1e870b279f990981dcbaff79c9db58fde18ba9.zip |
feat: Add ability to launch via Steam to DevView (#178)
* feat: Add ability to launch via Steam
* document what get_titanfall_proton() does
* revert explicit use of newly imported Path
* Format source code to pass CI
* Use new steamlocate compat_tool helper
* cargo fmt
* fix: Address various clippy issues
Addresses clippy warnings caused by newly introduced code
* fix: Cargo toml dependency formatting
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r-- | src-tauri/src/main.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 21045db1..16b951ec 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -121,6 +121,7 @@ fn main() { install_northstar_caller, update_northstar_caller, launch_northstar_caller, + launch_northstar_steam_caller, check_is_flightcore_outdated_caller, get_log_list, verify_game_files, @@ -324,6 +325,15 @@ async fn launch_northstar_caller( } #[tauri::command] +/// Launches Northstar +async fn launch_northstar_steam_caller( + game_install: GameInstall, + bypass_checks: Option<bool>, +) -> Result<String, String> { + launch_northstar_steam(game_install, bypass_checks) +} + +#[tauri::command] /// Installs the specified mod async fn install_mod_caller( game_install: GameInstall, |