From 4c840356f65b3876a09036d7c9d136fa5cddbc36 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 17 Aug 2022 22:10:59 +0200 Subject: warn about unsupported platforms --- karld/src/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/karld/src/main.rs b/karld/src/main.rs index 3e85b04..4f4445f 100644 --- a/karld/src/main.rs +++ b/karld/src/main.rs @@ -14,7 +14,7 @@ use condition::ConditionFind; use crossbeam_channel::Sender; use helper::Overlaps; use karlcommon::{ClientboundPacket, ProtoError, Schedule, ServerboundPacket, Task}; -use log::{debug, error, info}; +use log::{debug, error, info, warn}; use std::{ collections::HashMap, sync::{atomic::AtomicU32, RwLock}, @@ -29,6 +29,11 @@ fn main() { error!("load failed: {}", e); } + #[cfg(target_os = "windows")] + warn!("Windows is not supported, please dont report any bugs for this platform. Please use a free operating system."); + #[cfg(target_os = "macos")] + warn!("Mac OS is not supported, please dont report any bugs for this platform. Please use a free operating system."); + std::thread::spawn(move || { std::thread::sleep(std::time::Duration::from_secs_f64(0.1)); schedule_dynamic(); -- cgit v1.2.3-70-g09d2