diff options
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r-- | src-tauri/src/main.rs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 9cbef850..a33f836c 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -13,7 +13,7 @@ use app::{ check_is_flightcore_outdated, check_is_valid_game_path, check_northstar_running, check_origin_running, convert_release_candidate_number, find_game_install_location, get_enabled_mods, get_host_os, get_log_list, get_northstar_version_number, install_northstar, - launch_northstar, set_mod_enabled_status, GameInstall, + launch_northstar, set_mod_enabled_status, GameInstall, linux_checks_librs }; mod repair_and_verify; @@ -87,7 +87,8 @@ fn main() { get_enabled_mods_caller, set_mod_enabled_status_caller, disable_all_but_core_caller, - is_debug_mode + is_debug_mode, + linux_checks ]) .run(tauri::generate_context!()) .expect("error while running tauri application"); @@ -118,6 +119,16 @@ fn is_debug_mode() -> bool { } #[tauri::command] +/// Returns true if linux compatible +fn linux_checks() -> bool { + if get_host_os() == "windows" { + false + } else { + linux_checks_librs() + } +} + +#[tauri::command] /// Returns the current version number as a string fn get_version_number() -> String { let version = env!("CARGO_PKG_VERSION"); |