diff --git a/src/emu/graphics.rs b/src/emu/graphics.rs index 202603d..99ccfb1 100644 --- a/src/emu/graphics.rs +++ b/src/emu/graphics.rs @@ -35,9 +35,6 @@ impl GraphicsProcessor { let mut fb = self.frame_buffer.borrow_mut(); fb.copy_from_slice(memory_slice); } - pub fn get_framebuffer(&self) -> Box<[u8; DEVICE_FRAMEBUFFER_SIZE]> { - self.frame_buffer.borrow().clone() - } } #[cfg(test)] diff --git a/src/main.rs b/src/main.rs index c5e2021..9a6e8d8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,7 +25,7 @@ fn main() -> EmulatorResult<()> { let mut cpu = Cpu::new(&mmu,&program_counter); for i in 0..1{ - cpu.cycle(); + cpu.cycle()?; } // let sdl_context = sdl2::init().unwrap();