aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/main.rs
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-10 23:26:21 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-10 23:26:21 +0200
commit54e5b393128f6df4c013ff0866349cce4291d7b5 (patch)
tree27a9b9fa12dff3579aed72fd78bfe7ef5e141688 /src-tauri/src/main.rs
parent9d3f82e13a73998f508ba65ef4076fb79982b13c (diff)
downloadFlightCore-54e5b393128f6df4c013ff0866349cce4291d7b5.tar.gz
FlightCore-54e5b393128f6df4c013ff0866349cce4291d7b5.zip
Move get host OS function to lib.rs
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r--src-tauri/src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index 09123040..0b436262 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -12,7 +12,7 @@ use std::{
use anyhow::anyhow;
use app::{
check_is_valid_game_path, find_game_install_location, get_northstar_version_number,
- install_northstar, GameInstall, InstallType,
+ install_northstar, GameInstall, InstallType, get_host_os,
};
use tauri::{Manager, State};
use tokio::time::sleep;
@@ -54,7 +54,7 @@ fn main() {
get_northstar_version_number_caller,
check_is_northstar_outdated,
verify_install_location,
- get_host_os,
+ get_host_os_caller,
install_northstar_caller,
update_northstar_caller,
launch_northstar
@@ -158,8 +158,8 @@ 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()
+fn get_host_os_caller() -> String {
+ get_host_os()
}
#[tauri::command]