WINIT WINDOW!!!!

This commit is contained in:
Chance 2024-12-01 20:50:11 -05:00 committed by lily
parent b2281324cb
commit f002196681
Signed by: lily
GPG key ID: 601F3263FBCBC4B9
4 changed files with 62 additions and 2 deletions

View file

@ -1,11 +1,11 @@
use std::io;
use anyhow::Result;
use log2::info;
pub mod core;
#[tokio::main]
async fn main() -> Result<(), io::Error> {
async fn main() -> Result<()> {
let _log2 = log2::open("z.log").tee(true).level("trace").start();
info!("Initalizing Engine");
let shell_thread = tokio::task::spawn(async {
@ -16,6 +16,7 @@ async fn main() -> Result<(), io::Error> {
core::splash::print_splash();
info!("Engine Initalized");
core::init_render()?;
shell_thread.await?;
Ok(())
}