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

chore: small commets added

parent c1fcc4d5
No related branches found
No related tags found
1 merge request!25Game Genie support
Pipeline #2871 failed
...@@ -809,6 +809,9 @@ pub static GAME_GENIE: Mbc = Mbc { ...@@ -809,6 +809,9 @@ pub static GAME_GENIE: Mbc = Mbc {
read_rom: |rom: &Cartridge, addr: u16| -> u8 { read_rom: |rom: &Cartridge, addr: u16| -> u8 {
let game_genie = rom.game_genie.as_ref().unwrap(); let game_genie = rom.game_genie.as_ref().unwrap();
if game_genie.contains_addr(addr) { if game_genie.contains_addr(addr) {
// retrieves the Game Genie code that matches the current address
// keep in mind that this assumes that no more that one code is
// registered for the same memory address
let genie_code = game_genie.get_addr(addr); let genie_code = game_genie.get_addr(addr);
// checks if the current data at the address is the same as the // checks if the current data at the address is the same as the
......
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