From ff8fa4fcd3bb30c0be269586ea86e4fe045613b3 Mon Sep 17 00:00:00 2001 From: Atreya Bain Date: Mon, 19 Feb 2024 09:11:06 +0530 Subject: [PATCH] [cln] Cleanup and fixes --- src/emu/graphics.rs | 3 --- src/main.rs | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) 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();