summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Debug/Watches.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-01-09 18:41:28 +0100
committerGitHub <noreply@github.com>2023-01-09 18:41:28 +0100
commit653e0ccf280768e8474952767ee4da06b7e9b607 (patch)
tree1a73b75401b7d663306159314d1bdf023736e094 /Source/Core/Common/Debug/Watches.cpp
parent21c29bad6bcb7b3750818e0a3417b96def28c4f0 (diff)
parent993d2ab173f0e262465b4420e5746bb55a2c9ff1 (diff)
Merge pull request #11365 from iwubcode/cheat_manager_freeze_value
DolphinQt: add ability to lock / freeze values in the watches window
Diffstat (limited to 'Source/Core/Common/Debug/Watches.cpp')
-rw-r--r--Source/Core/Common/Debug/Watches.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/Common/Debug/Watches.cpp b/Source/Core/Common/Debug/Watches.cpp
index 0088c8f26a..dddb3f3435 100644
--- a/Source/Core/Common/Debug/Watches.cpp
+++ b/Source/Core/Common/Debug/Watches.cpp
@@ -62,6 +62,11 @@ void Watches::UpdateWatchName(std::size_t index, std::string name)
m_watches[index].name = std::move(name);
}
+void Watches::UpdateWatchLockedState(std::size_t index, bool locked)
+{
+ m_watches[index].locked = locked;
+}
+
void Watches::EnableWatch(std::size_t index)
{
m_watches[index].is_enabled = Watch::State::Enabled;