aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/main.rs
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-10 19:31:50 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-10 19:31:50 +0200
commit18cf7fa1daf9ea0f3ba71ad0ee4d857e703bd4b4 (patch)
treebabf8293ddb24d5a51569bdd1a18290bcf2128cd /src-tauri/src/main.rs
parent45a9903b07c71254ebd7d01b09598b6ad9dd68cb (diff)
downloadFlightCore-18cf7fa1daf9ea0f3ba71ad0ee4d857e703bd4b4.tar.gz
FlightCore-18cf7fa1daf9ea0f3ba71ad0ee4d857e703bd4b4.zip
Add initial front-end code for launching Northstar
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r--src-tauri/src/main.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index 2ba190bb..097774d4 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -55,7 +55,8 @@ fn main() {
verify_install_location,
get_host_os,
install_northstar_caller,
- update_northstar_caller
+ update_northstar_caller,
+ launch_northstar
])
.run(tauri::generate_context!())
.expect("error while running tauri application");
@@ -187,3 +188,10 @@ async fn update_northstar_caller(game_path: String) -> Result<bool, String> {
}
}
}
+
+#[tauri::command]
+/// Launches Northstar
+fn launch_northstar(game_install: GameInstall) -> Result<String, String> {
+ dbg!(game_install.clone());
+ Err(format!("Not yet implemented for {:?} on {}", game_install.install_type, get_host_os()))
+}