aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <yvchraiqi@protonmail.com>2022-08-17 22:10:59 +0200
committermetamuffin <yvchraiqi@protonmail.com>2022-08-17 22:10:59 +0200
commit4c840356f65b3876a09036d7c9d136fa5cddbc36 (patch)
treeeb466b88a4c1b663d0f8c3f09fb3168104a0400a
parentb73b8d89a71f02f8ea6563541312efeea7ae0d92 (diff)
downloadkarlender-4c840356f65b3876a09036d7c9d136fa5cddbc36.tar
karlender-4c840356f65b3876a09036d7c9d136fa5cddbc36.tar.bz2
karlender-4c840356f65b3876a09036d7c9d136fa5cddbc36.tar.zst
warn about unsupported platforms
-rw-r--r--karld/src/main.rs7
1 files changed, 6 insertions, 1 deletions
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();