diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-10-13 02:49:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-13 02:49:43 +0200 |
commit | 475ddbbede706624f6b332c06a035f2319a88f8e (patch) | |
tree | 2e15fb01cf7501844700ba7090ee80abff819a1a /src-tauri/src/main.rs | |
parent | f515a3b702f781c0da438840071def1b37d2e1bc (diff) | |
download | FlightCore-475ddbbede706624f6b332c06a035f2319a88f8e.tar.gz FlightCore-475ddbbede706624f6b332c06a035f2319a88f8e.zip |
refactor: Move `get_host_os` to module (#618)
In an effort to clean up `main.rs`
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r-- | src-tauri/src/main.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 6bb65a2c..3ad7a1ea 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -123,7 +123,7 @@ fn main() { northstar::get_northstar_version_number, check_is_northstar_outdated, verify_install_location, - get_host_os, + platform_specific::get_host_os, install_northstar_caller, update_northstar, northstar::launch_northstar, @@ -475,9 +475,3 @@ pub fn check_is_valid_game_path(game_install_path: &str) -> Result<(), String> { } Ok(()) } - -/// Returns identifier of host OS FlightCore is running on -#[tauri::command] -fn get_host_os() -> String { - env::consts::OS.to_string() -} |