This commit is contained in:
Alex Janka 2023-03-07 18:05:06 +11:00
parent e80b961eca
commit a1f0d68c19
2 changed files with 3 additions and 2 deletions

View file

@ -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<u8>),
}
pub trait Renderer: Send + Sync {
pub trait Renderer: Send {
fn prepare(&mut self, width: usize, height: usize);
fn display(&mut self, buffer: &[u32]);

View file

@ -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