chore: update some dependencies

This commit is contained in:
2022-04-07 15:19:47 -03:00
parent cf2357f917
commit 926c66746d
6 changed files with 291 additions and 350 deletions

View File

@@ -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),
}
}
}

View File

@@ -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,
}
}

View File

@@ -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),
}
}

View File

@@ -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)