fix mbcs visibility

This commit is contained in:
Alex Janka 2023-02-23 10:19:33 +11:00
parent 9090aa4621
commit 97f39e9c5d
3 changed files with 9 additions and 9 deletions

View file

@ -12,9 +12,3 @@ pub(super) trait Mbc {
fn set_ram(&mut self, address: Address, data: u8);
fn mbc_type(&self) -> String;
}
#[derive(Clone, Copy)]
enum BankingMode {
Simple,
Advanced,
}

View file

@ -1,8 +1,14 @@
use super::{BankingMode, Mbc};
use super::Mbc;
use crate::processor::memory::Address;
#[derive(Clone, Copy)]
enum BankingMode {
Simple,
Advanced,
}
pub struct Mbc1 {
pub data: Vec<u8>,
data: Vec<u8>,
rom_len: usize,
rom_bank: u8,
ram_enabled: bool,

View file

@ -2,7 +2,7 @@ use super::Mbc;
use crate::processor::memory::Address;
pub struct None {
pub(super) data: Vec<u8>,
data: Vec<u8>,
}
impl None {