dont double init env_logger
This commit is contained in:
parent
77e5632856
commit
24af9dd689
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -713,6 +713,7 @@ version = "0.1.0"
|
|||
dependencies = [
|
||||
"clap",
|
||||
"ctrlc",
|
||||
"env_logger",
|
||||
"frontend-common",
|
||||
"gb-emu-lib",
|
||||
"log",
|
||||
|
@ -1490,7 +1491,6 @@ dependencies = [
|
|||
"bytemuck",
|
||||
"chrono",
|
||||
"cpal",
|
||||
"env_logger",
|
||||
"futures",
|
||||
"gb-emu-lib",
|
||||
"gilrs",
|
||||
|
|
|
@ -13,3 +13,4 @@ gb-emu-lib = { workspace = true }
|
|||
clap = { version = "4.4", features = ["derive"] }
|
||||
ctrlc = "3.4"
|
||||
log = { workspace = true }
|
||||
env_logger = { workspace = true }
|
||||
|
|
|
@ -124,6 +124,7 @@ impl From<Args> for frontend_common::RunOptions {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
env_logger::init();
|
||||
let args = Args::parse();
|
||||
|
||||
if let Some(subcommand) = args.command {
|
||||
|
|
|
@ -29,4 +29,3 @@ image = { version = "0.24", default-features = false, features = ["png"] }
|
|||
bytemuck = "1.14"
|
||||
chrono = "0.4"
|
||||
log = { workspace = true }
|
||||
env_logger = "0.11.1"
|
||||
|
|
|
@ -111,7 +111,6 @@ pub fn prepare(
|
|||
options: RunOptions,
|
||||
receiver: Receiver<EmulatorMessage<[u8; 4]>>,
|
||||
) -> PreparedEmulator {
|
||||
env_logger::init();
|
||||
let config = CONFIG_MANAGER.load_or_create_base_config();
|
||||
let standalone_config: StandaloneConfig = CONFIG_MANAGER.load_or_create_config();
|
||||
|
||||
|
|
Loading…
Reference in a new issue