mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 20:49:12 +12:00
Get our first AR code running
This commit is contained in:
parent
ae69c8f8c4
commit
97f8ea6cfd
6 changed files with 110 additions and 23 deletions
|
@ -1,13 +1,15 @@
|
|||
#include "cheats.hpp"
|
||||
|
||||
Cheats::Cheats() { reset(); }
|
||||
Cheats::Cheats(Memory& mem) : ar(mem) { reset(); }
|
||||
|
||||
void Cheats::reset() {
|
||||
cheats.clear(); // Unload loaded cheats
|
||||
ar.reset(); // Reset AR boi
|
||||
ar.reset(); // Reset ActionReplay
|
||||
}
|
||||
|
||||
void Cheats::runCheats() {
|
||||
void Cheats::addCheat(const Cheat& cheat) { cheats.push_back(cheat); }
|
||||
|
||||
void Cheats::run() {
|
||||
for (const Cheat& cheat : cheats) {
|
||||
switch (cheat.type) {
|
||||
case CheatType::ActionReplay: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue