mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-05-16 00:33:58 +12:00
[ActionReplay] Add HID stuff
This commit is contained in:
parent
d007b2d780
commit
4a45599303
5 changed files with 24 additions and 6 deletions
include
|
@ -5,6 +5,7 @@
|
|||
|
||||
#include "helpers.hpp"
|
||||
#include "memory.hpp"
|
||||
#include "services/hid.hpp"
|
||||
|
||||
class ActionReplay {
|
||||
using Cheat = std::vector<u32>; // A cheat is really just a bunch of 64-bit opcodes neatly encoded into 32-bit chunks
|
||||
|
@ -24,6 +25,7 @@ class ActionReplay {
|
|||
// Program counter
|
||||
u32 pc = 0;
|
||||
Memory& mem;
|
||||
HIDService& hid;
|
||||
|
||||
// Has the cheat ended?
|
||||
bool running = false;
|
||||
|
@ -41,8 +43,10 @@ class ActionReplay {
|
|||
void write16(u32 addr, u16 value);
|
||||
void write32(u32 addr, u32 value);
|
||||
|
||||
void pushConditionBlock(bool condition);
|
||||
|
||||
public:
|
||||
ActionReplay(Memory& mem);
|
||||
ActionReplay(Memory& mem, HIDService& hid);
|
||||
void runCheat(const Cheat& cheat);
|
||||
void reset();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue