From 4743d74985f49fc30f6c44b2192faaa59327fb38 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Thu, 22 Dec 2022 17:33:53 -0600 Subject: Core: add helper function to apply a memory patch and mark the 'PPCPatches' as final --- Source/Core/Common/DebugInterface.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/Core/Common/DebugInterface.h') diff --git a/Source/Core/Common/DebugInterface.h b/Source/Core/Common/DebugInterface.h index a59ac79f69..90ff647bec 100644 --- a/Source/Core/Common/DebugInterface.h +++ b/Source/Core/Common/DebugInterface.h @@ -50,6 +50,7 @@ public: virtual bool HasEnabledPatch(u32 address) const = 0; virtual void RemovePatch(std::size_t index) = 0; virtual void ClearPatches() = 0; + virtual void ApplyExistingPatch(std::size_t index) = 0; // Threads virtual Debug::Threads GetThreads() const = 0; -- cgit v1.2.3 From 2f2f906bf567ab6d89e10161c62404a1dcd8ee1e Mon Sep 17 00:00:00 2001 From: iwubcode Date: Thu, 22 Dec 2022 17:38:08 -0600 Subject: Core: add ability to add memory patches to the patch engine that will be executed each frame --- Source/Core/Common/DebugInterface.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Source/Core/Common/DebugInterface.h') diff --git a/Source/Core/Common/DebugInterface.h b/Source/Core/Common/DebugInterface.h index 90ff647bec..8949fd3276 100644 --- a/Source/Core/Common/DebugInterface.h +++ b/Source/Core/Common/DebugInterface.h @@ -43,6 +43,8 @@ public: // Memory Patches virtual void SetPatch(u32 address, u32 value) = 0; virtual void SetPatch(u32 address, std::vector value) = 0; + virtual void SetFramePatch(u32 address, u32 value) = 0; + virtual void SetFramePatch(u32 address, std::vector value) = 0; virtual const std::vector& GetPatches() const = 0; virtual void UnsetPatch(u32 address) = 0; virtual void EnablePatch(std::size_t index) = 0; -- cgit v1.2.3 From 8f3e8e4ca34bf3c521e20f41f7a54f5e447e0dac Mon Sep 17 00:00:00 2001 From: iwubcode Date: Thu, 22 Dec 2022 23:17:09 -0600 Subject: Core: add locked state to watches --- Source/Core/Common/DebugInterface.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/Core/Common/DebugInterface.h') diff --git a/Source/Core/Common/DebugInterface.h b/Source/Core/Common/DebugInterface.h index 8949fd3276..17c10a1894 100644 --- a/Source/Core/Common/DebugInterface.h +++ b/Source/Core/Common/DebugInterface.h @@ -32,6 +32,7 @@ public: virtual void UpdateWatch(std::size_t index, u32 address, std::string name) = 0; virtual void UpdateWatchAddress(std::size_t index, u32 address) = 0; virtual void UpdateWatchName(std::size_t index, std::string name) = 0; + virtual void UpdateWatchLockedState(std::size_t index, bool locked) = 0; virtual void EnableWatch(std::size_t index) = 0; virtual void DisableWatch(std::size_t index) = 0; virtual bool HasEnabledWatch(u32 address) const = 0; -- cgit v1.2.3