rumble on title

This commit is contained in:
Alex Janka 2023-02-27 10:57:46 +11:00
parent 6c60438da7
commit 7b2a34e7f4

View file

@ -93,9 +93,10 @@ impl Mbc for Mbc5 {
fn mbc_type(&self) -> String { fn mbc_type(&self) -> String {
if let Some(ram) = &self.ram { if let Some(ram) = &self.ram {
format!( format!(
"{}KB MBC5 with {}KB RAM", "{}KB MBC5 with {}KB RAM{}",
self.rom_size / KB, self.rom_size / KB,
ram.len() / KB ram.len() / KB,
if self.rumble { " and Rumble" } else { "" }
) )
} else { } else {
format!("{}KB MBC5", self.rom_size / KB) format!("{}KB MBC5", self.rom_size / KB)