mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 20:49:12 +12:00
Better cheat interface
This commit is contained in:
parent
9ad34dd6c9
commit
eef87da979
4 changed files with 17 additions and 8 deletions
|
@ -3,11 +3,19 @@
|
|||
Cheats::Cheats(Memory& mem, HIDService& hid) : ar(mem, hid) { reset(); }
|
||||
|
||||
void Cheats::reset() {
|
||||
cheats.clear(); // Unload loaded cheats
|
||||
ar.reset(); // Reset ActionReplay
|
||||
clear(); // Clear loaded cheats
|
||||
ar.reset(); // Reset ActionReplay
|
||||
}
|
||||
|
||||
void Cheats::addCheat(const Cheat& cheat) { cheats.push_back(cheat); }
|
||||
void Cheats::addCheat(const Cheat& cheat) {
|
||||
cheats.push_back(cheat);
|
||||
cheatsLoaded = true;
|
||||
}
|
||||
|
||||
void Cheats::clear() {
|
||||
cheats.clear();
|
||||
cheatsLoaded = false;
|
||||
}
|
||||
|
||||
void Cheats::run() {
|
||||
for (const Cheat& cheat : cheats) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue