From 97f39e9c5dd450395893318eccf9b792e96d930a Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Thu, 23 Feb 2023 10:19:33 +1100 Subject: [PATCH] fix mbcs visibility --- src/processor/memory/rom/mbcs.rs | 6 ------ src/processor/memory/rom/mbcs/mbc1.rs | 10 ++++++++-- src/processor/memory/rom/mbcs/none.rs | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/processor/memory/rom/mbcs.rs b/src/processor/memory/rom/mbcs.rs index 6ccbe4c..cc0af68 100644 --- a/src/processor/memory/rom/mbcs.rs +++ b/src/processor/memory/rom/mbcs.rs @@ -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, -} diff --git a/src/processor/memory/rom/mbcs/mbc1.rs b/src/processor/memory/rom/mbcs/mbc1.rs index dd6051b..4f9387a 100644 --- a/src/processor/memory/rom/mbcs/mbc1.rs +++ b/src/processor/memory/rom/mbcs/mbc1.rs @@ -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, + data: Vec, rom_len: usize, rom_bank: u8, ram_enabled: bool, diff --git a/src/processor/memory/rom/mbcs/none.rs b/src/processor/memory/rom/mbcs/none.rs index 1d232b3..246b817 100644 --- a/src/processor/memory/rom/mbcs/none.rs +++ b/src/processor/memory/rom/mbcs/none.rs @@ -2,7 +2,7 @@ use super::Mbc; use crate::processor::memory::Address; pub struct None { - pub(super) data: Vec, + data: Vec, } impl None {