feat(cartridge): add explicit GPIO and RTC control support

This commit is contained in:
0xrsydn 2026-10-07 05:28:52 +07:00
commit 692be36349
18 changed files with 889 additions and 26 deletions

View file

@ -26,7 +26,8 @@ fn options_require_both_flags_in_either_order() {
parse_args(&arguments).unwrap(),
Options {
path: "original program.gba".into(),
mode: Mode::Terminal { steps: count }
mode: Mode::Terminal { steps: count },
hardware: CartridgeHardware::None
}
);
}

View file

@ -46,6 +46,10 @@ impl Session {
})
}
pub fn set_cartridge_hardware(&mut self, hardware: gba_core::cartridge::CartridgeHardware) {
self.machine.memory_mut().set_cartridge_hardware(hardware);
}
pub fn frame(&self) -> &Framebuffer {
&self.frame
}