This commit is contained in:
Alex Janka 2023-02-13 12:43:58 +11:00
parent 8a04f5e507
commit d6af9d31b3
4 changed files with 10 additions and 11 deletions

View file

@ -1,7 +0,0 @@
pub(super) struct Apu {}
impl Apu {
pub(super) fn init() -> Self {
Self {}
}
}

View file

@ -0,0 +1,7 @@
pub struct Apu {}
impl Apu {
fn init() -> Self {
Self {}
}
}

View file

@ -1,2 +1,4 @@
mod apu;
mod joypad;
pub use apu::Apu;
pub use joypad::{Joypad, JoypadBank};

View file

@ -1,4 +1,4 @@
use self::{apu::Apu, gpu::Gpu, memory::Memory, timer::Timers};
use self::{gpu::Gpu, memory::Memory, timer::Timers};
use crate::{
util::{clear_bit, get_bit},
verbose_println,
@ -6,7 +6,6 @@ use crate::{
use gilrs::Gilrs;
use minifb::Window;
mod apu;
pub mod gpu;
mod instructions;
pub mod memory;
@ -36,7 +35,6 @@ pub struct Cpu {
halted: bool,
timers: Timers,
gamepad_handler: Gilrs,
apu: Apu,
}
// Hz
@ -64,7 +62,6 @@ impl Cpu {
halted: false,
timers: Timers::init(),
gamepad_handler,
apu: Apu::init(),
}
}