chore: update some dependencies
This commit is contained in:
@@ -169,7 +169,7 @@ pub(super) mod ch4 {
|
||||
match byte & 0x01 {
|
||||
0b00 => Self::Short,
|
||||
0b01 => Self::Long,
|
||||
_ => unreachable!("{:#04X} is not a valid value for CounterWidth"),
|
||||
_ => unreachable!("{:#04X} is not a valid value for CounterWidth", byte),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ pub fn surface_config(window: &Window, format: TextureFormat) -> SurfaceConfigur
|
||||
format,
|
||||
width: size.width as u32,
|
||||
height: size.height as u32,
|
||||
present_mode: PresentMode::Mailbox,
|
||||
present_mode: PresentMode::Immediate,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2073,7 +2073,7 @@ mod table {
|
||||
0b101 => L,
|
||||
0b110 => IndirectHL,
|
||||
0b111 => A,
|
||||
_ => unreachable!("{:#04X} is not a valid Register"),
|
||||
_ => unreachable!("{:#04X} is not a valid Register", code),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
10
src/main.rs
10
src/main.rs
@@ -1,6 +1,6 @@
|
||||
use std::time::Instant;
|
||||
|
||||
use clap::{crate_authors, crate_description, crate_name, crate_version, App, Arg};
|
||||
use clap::{crate_authors, crate_description, crate_name, crate_version, Arg, Command};
|
||||
use egui_wgpu_backend::RenderPass;
|
||||
use gb::gui::EmuMode;
|
||||
use gb::{emu, gui};
|
||||
@@ -14,22 +14,22 @@ use winit::event_loop::EventLoop;
|
||||
const AUDIO_ENABLED: bool = true;
|
||||
|
||||
fn main() {
|
||||
let app = App::new(crate_name!())
|
||||
let app = Command::new(crate_name!())
|
||||
.version(crate_version!())
|
||||
.author(crate_authors!())
|
||||
.about(crate_description!());
|
||||
|
||||
let m = app
|
||||
.arg(
|
||||
Arg::with_name("rom")
|
||||
Arg::new("rom")
|
||||
.value_name("ROM_FILE")
|
||||
.takes_value(true)
|
||||
.index(1)
|
||||
.help("Path to the Game ROM"),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("boot")
|
||||
.short("b")
|
||||
Arg::new("boot")
|
||||
.short('b')
|
||||
.long("boot")
|
||||
.value_name("FILE")
|
||||
.takes_value(true)
|
||||
|
||||
Reference in New Issue
Block a user