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

fix: wasm cartridge_i method issue

parent 7a7d16b4
No related branches found
No related tags found
1 merge request!31System state save
Pipeline #3225 failed
......@@ -656,14 +656,6 @@ impl GameBoy {
self.apu_i().channels()
}
pub fn cartridge(&mut self) -> &mut Cartridge {
self.mmu().rom()
}
pub fn cartridge_i(&self) -> &Cartridge {
self.mmu_i().rom_i()
}
pub fn cartridge_eager(&mut self) -> Cartridge {
self.mmu().rom().clone()
}
......@@ -1005,6 +997,14 @@ impl GameBoy {
self.apu().audio_buffer()
}
pub fn cartridge(&mut self) -> &mut Cartridge {
self.mmu().rom()
}
pub fn cartridge_i(&self) -> &Cartridge {
self.mmu_i().rom_i()
}
pub fn load_boot_path(&mut self, path: &str) {
let data = read_file(path);
self.load_boot(&data);
......
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