diff options
author | RaindropsSys <raindrops@equestria.dev> | 2024-05-10 19:48:52 +0200 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2024-05-10 19:48:52 +0200 |
commit | ae852beb809fb85d32e284167858bbdfbd764fda (patch) | |
tree | 70ebd269d2aa00ed6346b2669a16357a0ff54466 /launcher | |
parent | c527e9d533135da7087b3069ac2b4d42f4daf994 (diff) | |
download | atomic-ae852beb809fb85d32e284167858bbdfbd764fda.tar.gz atomic-ae852beb809fb85d32e284167858bbdfbd764fda.tar.bz2 atomic-ae852beb809fb85d32e284167858bbdfbd764fda.zip |
Crappy code fix 3/?
Diffstat (limited to 'launcher')
-rw-r--r-- | launcher/src/main.rs | 19 |
1 files 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" |