diff --git a/yarge-core/src/bus.rs b/yarge-core/src/bus.rs index 9de042c..1a5d10a 100644 --- a/yarge-core/src/bus.rs +++ b/yarge-core/src/bus.rs @@ -237,5 +237,6 @@ impl MemBus { self.apu.tick(self.timers.get_div_raw()); self.input.tick(&mut self.iif); self.serial.tick(&mut self.iif); + self.cart.tick(); } } diff --git a/yarge-core/src/bus/cartridge.rs b/yarge-core/src/bus/cartridge.rs index 8db009b..c750fe9 100644 --- a/yarge-core/src/bus/cartridge.rs +++ b/yarge-core/src/bus/cartridge.rs @@ -25,6 +25,8 @@ pub trait CartridgeImpl { fn has_save_data(&self) -> bool { false } fn save_data(&self) -> Option> { None } fn load_data(&mut self, data: Vec) {} + + fn tick(&mut self) {} } #[non_exhaustive]