From a1f0d68c1922afdf37686f2bfa649813cf837f59 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Tue, 7 Mar 2023 18:05:06 +1100 Subject: [PATCH] ony send --- lib/src/connect/mod.rs | 3 ++- lib/src/processor/memory/rom/mbcs.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/src/connect/mod.rs b/lib/src/connect/mod.rs index 0305e5c..9ad53a5 100644 --- a/lib/src/connect/mod.rs +++ b/lib/src/connect/mod.rs @@ -1,4 +1,5 @@ pub use crate::processor::memory::mmio::joypad::JoypadState; +pub use crate::{HEIGHT, WIDTH}; use async_ringbuf::{AsyncHeapConsumer, AsyncHeapProducer, AsyncHeapRb}; use futures::executor; @@ -11,7 +12,7 @@ pub enum RomFile { Raw(Vec), } -pub trait Renderer: Send + Sync { +pub trait Renderer: Send { fn prepare(&mut self, width: usize, height: usize); fn display(&mut self, buffer: &[u32]); diff --git a/lib/src/processor/memory/rom/mbcs.rs b/lib/src/processor/memory/rom/mbcs.rs index 30c00f6..18dc4af 100644 --- a/lib/src/processor/memory/rom/mbcs.rs +++ b/lib/src/processor/memory/rom/mbcs.rs @@ -15,7 +15,7 @@ pub(super) const KB: usize = 1024; const ROM_BANK_SIZE: usize = 16 * KB; const RAM_BANK_SIZE: usize = 8 * KB; -pub(super) trait Mbc: Send + Sync { +pub(super) trait Mbc: Send { // addresses 0x0000 - 0x7FFF fn get(&self, address: Address) -> u8; // addresses 0xA000 - 0xBFFF