From ae852beb809fb85d32e284167858bbdfbd764fda Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Fri, 10 May 2024 19:48:52 +0200 Subject: Crappy code fix 3/? --- launcher/src/main.rs | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/launcher/src/main.rs b/launcher/src/main.rs index 959b517..b5c16d7 100644 --- a/launcher/src/main.rs +++ b/launcher/src/main.rs @@ -1,4 +1,4 @@ -use std::env::current_exe; +use std::env::{consts, current_exe}; use std::path::{Path, PathBuf}; use std::process::{Command, exit}; use dirs::home_dir; @@ -90,23 +90,8 @@ fn get_search_paths() -> [PathBuf; 29] { ] } -#[cfg(target_os = "macos")] -const PLATFORM: &str = "macOS/Darwin"; - -#[cfg(target_os = "linux")] -const PLATFORM: &str = "Linux"; - -#[cfg(target_os = "windows")] -const PLATFORM: &str = "Windows"; - -#[cfg(target_arch = "aarch64")] -const ARCH: &str = "ARM64"; - -#[cfg(target_arch = "x86_64")] -const ARCH: &str = "x86_64"; - fn show_system_info() { - println!("atomic-launcher: Starting atomic-launcher on {} ({})", PLATFORM, ARCH); + println!("atomic-launcher: Starting atomic-launcher on {} ({})", consts::OS, consts::ARCH); } // TODO: Rename these to "Atomic" -- cgit