Skip to content
Snippets Groups Projects
Verified Commit 25706504 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fix: boot ROM type validation

parent 3cf9649b
No related branches found
No related tags found
No related merge requests found
Pipeline #4461 failed
......@@ -1188,7 +1188,7 @@ impl GameBoy {
pub fn load_boot_dmg(&mut self, boot_rom: Option<BootRom>) -> Result<(), Error> {
let boot_rom = boot_rom.unwrap_or(BootRom::DmgBootix);
if !boot_rom.is_cgb() {
if !boot_rom.is_dmg_compat() {
return Err(Error::IncompatibleBootRom);
}
self.load_boot_static(boot_rom);
......@@ -1220,7 +1220,7 @@ impl GameBoy {
pub fn load_boot_dmg_f(&mut self, boot_rom: Option<BootRom>) -> Result<(), Error> {
let boot_rom = boot_rom.unwrap_or(BootRom::DmgBootix);
if !boot_rom.is_cgb() {
if !boot_rom.is_dmg_compat() {
return Err(Error::IncompatibleBootRom);
}
self.load_boot_file(boot_rom)?;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment