chore: remove Emulator struct

This commit is contained in:
2021-11-21 05:27:04 -04:00
parent 939c25ce1a
commit 2405fd027f
4 changed files with 80 additions and 129 deletions

View File

@@ -19,7 +19,7 @@ pub struct Bus {
var_ram: VariableWorkRam,
timer: Timer,
int: Interrupt,
apu: Apu,
pub(crate) apu: Apu,
high_ram: HighRam,
serial: Serial,
pub(crate) joyp: Joypad,
@@ -89,11 +89,6 @@ impl Bus {
self.oam_write_byte(dest_addr, byte);
}
}
#[inline]
pub(crate) fn apu_mut(&mut self) -> &mut Apu {
&mut self.apu
}
}
impl Bus {