feat(cartridge): grab title from the ROM

This commit is contained in:
2021-04-14 01:21:45 -05:00
parent cbd085c25b
commit b43c8ac7c9
5 changed files with 39 additions and 9 deletions

View File

@@ -63,6 +63,10 @@ impl Bus {
Ok(())
}
pub fn rom_title(&self) -> Option<&str> {
self.cartridge.as_ref()?.title()
}
pub fn step(&mut self, cycles: Cycle) {
self.ppu.step(cycles);
self.timer.step(cycles);