[Cheats] Split gateway and AR

This commit is contained in:
wheremyfoodat 2023-07-19 21:09:44 +03:00
parent 0904638df0
commit ae69c8f8c4
5 changed files with 78 additions and 16 deletions

View file

@ -0,0 +1,14 @@
#include "action_replay.hpp"
ActionReplay::ActionReplay() { reset(); }
void ActionReplay::reset() {
// Default value of storage regs is 0
storage1 = 0;
storage2 = 0;
}
void ActionReplay::runCheat(const Cheat& cheat) {
// Set offset and data registers to 0 at the start of a cheat
data1 = data2 = offset1 = offset2 = 0;
}