bsnes-plus/bsnes/snes/cheat/cheat-inline.hpp
devinacker e708dc4781 improve handling of cheats to handle things other than WRAM (closes #97)
note: mirroring detection for cheats doesn't work for two addresses in
the same 64kb bank i.e. the lowest 16 bits of both addresses must still
be the same
2018-06-10 22:55:22 -04:00

2 lines
140 B
C++

bool Cheat::active() const { return cheat_enabled; }
bool Cheat::exists(uint16 addr) const { return bitmask[addr >> 3] & 1 << (addr & 7); }