From 32e135e6a94de9aba7e08ef0b32fac35f4647ab3 Mon Sep 17 00:00:00 2001 From: TryTwo Date: Mon, 24 Jun 2024 14:18:41 -0700 Subject: MemoryViewWidget: Add OnFrameEnd callback to auto-update memory while a game is running. --- Source/Core/DolphinQt/Debugger/MemoryViewWidget.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/Core/DolphinQt/Debugger/MemoryViewWidget.h') diff --git a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.h b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.h index 584ce4fd42..a1e2af09ea 100644 --- a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.h +++ b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.h @@ -84,6 +84,7 @@ public: void CreateTable(); void UpdateDispatcher(UpdateType type = UpdateType::Addresses); void Update(); + void UpdateOnFrameEnd(); void GetValues(); void UpdateFont(const QFont& font); void ToggleBreakpoint(u32 addr, bool row); @@ -99,6 +100,7 @@ public: void SetBPLoggingEnabled(bool enabled); signals: + void AutoUpdate(); void ShowCode(u32 address); void RequestWatch(QString name, u32 address); @@ -131,6 +133,7 @@ private: int m_alignment = 16; int m_data_columns; bool m_dual_view = false; + std::mutex m_updating; QColor m_highlight_color = QColor(120, 255, 255, 100); friend class MemoryViewTable; -- cgit v1.2.3