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

fix: critical issue related to boot ROM

parent ffac84f9
No related branches found
Tags 0.8.0
No related merge requests found
Pipeline #1602 passed
......@@ -13,11 +13,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
* New default demo ROM
*
### Fixed
*
* Critical issue with loading of Boot ROM
## [0.5.3] - 2022-11-15
......
......@@ -128,7 +128,7 @@ impl GameBoy {
}
pub fn load_boot_dmg(&mut self) {
self.load_boot_static(BootRom::Cgb);
self.load_boot_static(BootRom::DmgBootix);
}
pub fn load_boot_cgb(&mut self) {
......@@ -247,9 +247,17 @@ impl GameBoy {
}
pub fn load_boot_default_f(&mut self) {
self.load_boot_cgb_f();
}
pub fn load_boot_dmg_f(&mut self) {
self.load_boot_file(BootRom::DmgBootix);
}
pub fn load_boot_cgb_f(&mut self) {
self.load_boot_file(BootRom::Cgb);
}
pub fn load_rom(&mut self, data: &[u8]) -> &Cartridge {
let rom = Cartridge::from_data(data);
self.mmu().set_rom(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