fix mbcs visibility
This commit is contained in:
parent
9090aa4621
commit
97f39e9c5d
|
@ -12,9 +12,3 @@ pub(super) trait Mbc {
|
||||||
fn set_ram(&mut self, address: Address, data: u8);
|
fn set_ram(&mut self, address: Address, data: u8);
|
||||||
fn mbc_type(&self) -> String;
|
fn mbc_type(&self) -> String;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Copy)]
|
|
||||||
enum BankingMode {
|
|
||||||
Simple,
|
|
||||||
Advanced,
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
use super::{BankingMode, Mbc};
|
use super::Mbc;
|
||||||
use crate::processor::memory::Address;
|
use crate::processor::memory::Address;
|
||||||
|
|
||||||
|
#[derive(Clone, Copy)]
|
||||||
|
enum BankingMode {
|
||||||
|
Simple,
|
||||||
|
Advanced,
|
||||||
|
}
|
||||||
|
|
||||||
pub struct Mbc1 {
|
pub struct Mbc1 {
|
||||||
pub data: Vec<u8>,
|
data: Vec<u8>,
|
||||||
rom_len: usize,
|
rom_len: usize,
|
||||||
rom_bank: u8,
|
rom_bank: u8,
|
||||||
ram_enabled: bool,
|
ram_enabled: bool,
|
||||||
|
|
|
@ -2,7 +2,7 @@ use super::Mbc;
|
||||||
use crate::processor::memory::Address;
|
use crate::processor::memory::Address;
|
||||||
|
|
||||||
pub struct None {
|
pub struct None {
|
||||||
pub(super) data: Vec<u8>,
|
data: Vec<u8>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl None {
|
impl None {
|
||||||
|
|
Loading…
Reference in a new issue