chore: imrpove private and public APIs

This commit is contained in:
2021-11-24 22:12:26 -04:00
parent 2405fd027f
commit c10816c048
7 changed files with 81 additions and 47 deletions

View File

@@ -51,14 +51,6 @@ impl Bus {
}
}
pub(crate) fn load_cart(&mut self, rom: Vec<u8>) {
self.cart = Some(Cartridge::new(rom));
}
pub(crate) fn cart_title(&self) -> Option<&str> {
self.cart.as_ref()?.title()
}
#[allow(dead_code)]
pub(crate) fn boot_mapped(&self) -> bool {
self.boot.is_some()