Core: add ability to add memory patches to the patch engine that will be executed each frame

This commit is contained in:
iwubcode
2022-12-22 17:38:08 -06:00
parent 1f87bcd202
commit 2f2f906bf5
5 changed files with 60 additions and 1 deletions

View File

@ -43,6 +43,8 @@ public:
// Memory Patches
virtual void SetPatch(u32 address, u32 value) = 0;
virtual void SetPatch(u32 address, std::vector<u8> value) = 0;
virtual void SetFramePatch(u32 address, u32 value) = 0;
virtual void SetFramePatch(u32 address, std::vector<u8> value) = 0;
virtual const std::vector<Debug::MemoryPatch>& GetPatches() const = 0;
virtual void UnsetPatch(u32 address) = 0;
virtual void EnablePatch(std::size_t index) = 0;