diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-08-30 02:39:20 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-08-30 02:39:20 +0200 |
commit | 4dcf3a8d73d46b41220e7a5fb8be60be46ca9a49 (patch) | |
tree | 227e2e952af1cbf0210355277987b679e8592ff7 /src-tauri/src/main.rs | |
parent | 02d6a09f759fc923fb6c6057bb031fc2e1b173ea (diff) | |
download | FlightCore-4dcf3a8d73d46b41220e7a5fb8be60be46ca9a49.tar.gz FlightCore-4dcf3a8d73d46b41220e7a5fb8be60be46ca9a49.zip |
Pass install type together with location
Install type basically defines how Titanfall2 was installed.
Whether it was installed via Steam, Origin, etc.
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r-- | src-tauri/src/main.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index b90eb8a2..aa6b042e 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -56,7 +56,7 @@ fn main() { /// Wrapper for `find_game_install_location` as tauri doesn't allow passing `Result<>` types to front-end fn find_game_install_location_caller() -> String { match find_game_install_location() { - Ok(path) => path, + Ok((path, install_type)) => path, Err(err) => { println!("{}", err); "".to_string() @@ -64,7 +64,6 @@ fn find_game_install_location_caller() -> String { } } - #[tauri::command] fn hello_world() -> String { "Hello World!!!".to_string() @@ -101,4 +100,3 @@ fn get_northstar_version_number_caller() -> String { } } } - |