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

refactor: small code tune

parent f9f08104
No related branches found
No related tags found
No related merge requests found
Pipeline #1651 passed
......@@ -412,7 +412,7 @@ impl Cartridge {
}
pub fn has_battery(&self) -> bool {
return matches!(
matches!(
self.rom_type(),
RomType::Mbc1RamBattery
| RomType::Mbc2Battery
......@@ -425,7 +425,7 @@ impl Cartridge {
| 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