Skip to content
Snippets Groups Projects
Verified Commit e957e205 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fix: new matches

parent 2954009b
No related branches found
No related tags found
No related merge requests found
Pipeline #1625 canceled
......@@ -412,20 +412,20 @@ impl Cartridge {
}
pub fn has_battery(&self) -> bool {
match self.rom_type() {
matches!(
self.rom_type(),
RomType::Mbc1RamBattery
| RomType::Mbc2Battery
| RomType::RomRamBattery
| RomType::Mmm01RamBattery
| RomType::Mbc3TimerBattery
| RomType::Mbc3TimerRamBattery
| RomType::Mbc3RamBattery
| RomType::Mbc5RamBattery
| RomType::Mbc5RumbleRamBattery
| RomType::Mbc7SensorRumbleRamBattery
| RomType::HuC1RamBattery => true,
_ => false,
}
| RomType::Mbc2Battery
| RomType::RomRamBattery
| RomType::Mmm01RamBattery
| RomType::Mbc3TimerBattery
| RomType::Mbc3TimerRamBattery
| RomType::Mbc3RamBattery
| RomType::Mbc5RamBattery
| RomType::Mbc5RumbleRamBattery
| RomType::Mbc7SensorRumbleRamBattery
| RomType::HuC1RamBattery
);
}
pub fn ram_data_eager(&self) -> Vec<u8> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment