diff options
Diffstat (limited to 'src-tauri/src')
-rw-r--r-- | src-tauri/src/main.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index d6cdbd63..c83ddaeb 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -4,6 +4,7 @@ )] use std::{ + env, sync::{Arc, Mutex}, time::Duration, }; @@ -48,7 +49,8 @@ fn main() { get_version_number, get_northstar_version_number_caller, check_is_northstar_outdated, - verify_install_location + verify_install_location, + get_host_os ]) .run(tauri::generate_context!()) .expect("error while running tauri application"); @@ -146,3 +148,9 @@ fn verify_install_location(game_path: String) -> bool { } } } + +#[tauri::command] +/// Returns identifier of host OS FlightCore is running on +fn get_host_os() -> String { + env::consts::OS.to_string() +} |