wip
/ build (push) Successful in 24s
Details
/ build (push) Successful in 24s
Details
This commit is contained in:
parent
34de965cd5
commit
032b5868da
|
|
@ -141,9 +141,12 @@ impl GameBoy {
|
|||
Err(e) => panic!("{e}"),
|
||||
};
|
||||
|
||||
let mut bios = fs::File::open("DMG_ROM.bin").expect("could not open bios");
|
||||
bios.read_exact(&mut self.boot_rom)
|
||||
.expect("fail to read rom");
|
||||
let bios_filename = "DMG_ROM.bin";
|
||||
if let Ok(mut bios) = fs::File::open(bios_filename) {
|
||||
bios.read_exact(&mut self.boot_rom).expect("fail to read rom {bios_filename}");
|
||||
} else {
|
||||
println!("could not find bios file; continuing without");
|
||||
}
|
||||
}
|
||||
|
||||
pub fn register_breakpoint(&mut self, adr: &str) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue