1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
use clap::StructOpt;
use log::LevelFilter;
mod cli;
mod debug_profiling;
mod logging;
#[tokio::main]
async fn main() {
let args = cli::Args::parse();
let _profile_handle = debug_profiling::init_profiling();
logging::init_logging_system(
"ldjam50",
match args.verbose {
true => Some(LevelFilter::Debug),
false => None,
},
)
.expect("Failed to initialize logging system");
log::info!("Starting game");
game_logic::entrypoint(args.force_recreate_savefiles).await;
log::info!("Goodbye!");
}