chore(apu): change access modifiers of some methods

This commit is contained in:
2021-07-18 20:55:26 -05:00
parent 8e2ef58b81
commit c1430594cf
4 changed files with 11 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
use crate::apu::gen::AudioSender;
use crate::apu::Apu;
use crate::bus::{Bus, BusIo};
use crate::instruction::{Cycle, Instruction};
use crate::interrupt::{InterruptEnable, InterruptFlag};
@@ -45,10 +45,6 @@ impl Cpu {
})
}
pub fn set_audio_src(&mut self, sender: AudioSender<f32>) {
self.bus.pass_audio_src(sender)
}
pub(crate) fn ime(&self) -> ImeState {
self.ime
}
@@ -174,6 +170,10 @@ impl Cpu {
&self.bus.ppu
}
pub fn apu_mut(&mut self) -> &mut Apu {
&mut self.bus.apu
}
pub(crate) fn joypad_mut(&mut self) -> &mut Joypad {
&mut self.bus.joypad
}