aboutsummaryrefslogtreecommitdiff
path: root/karld/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'karld/src/main.rs')
-rw-r--r--karld/src/main.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/karld/src/main.rs b/karld/src/main.rs
index 51c33c2..b137bb5 100644
--- a/karld/src/main.rs
+++ b/karld/src/main.rs
@@ -22,24 +22,27 @@ use std::{
};
fn main() {
- env_logger::init_from_env("LOG");
+ env_logger::builder()
+ .filter_level(log::LevelFilter::Info)
+ .parse_env("LOG")
+ .init();
info!("logging");
if let Err(e) = savestate::load() {
error!("load failed: {}", e);
}
-
#[cfg(target_os = "windows")]
- log::warn!("Windows is not supported, please dont report any bugs for this platform. Please use a free operating system.");
+ log::warn!("Windows is not supported, please do not report any bugs for this platform. Use a free operating system instead.");
#[cfg(target_os = "macos")]
- log::warn!("Mac OS is not supported, please dont report any bugs for this platform. Please use a free operating system.");
+ log::warn!("Mac OS is not supported, please do not report any bugs for this platform. Use a free operating system instead.");
std::thread::spawn(move || {
std::thread::sleep(std::time::Duration::from_secs_f64(0.1));
schedule_dynamic();
});
- interface::start();
+ // demo::load_demo();
+ interface::start();
loop {
std::thread::sleep(std::time::Duration::from_secs_f64(100.0));
}