diff options
| author | JosJuice <josjuice@gmail.com> | 2024-06-26 20:34:16 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2024-06-26 20:36:46 +0200 |
| commit | bc67fc97c39628c76a4dbca411b0e8a9bfaf726a (patch) | |
| tree | 6b7cfcbf4ad79b125db6aa96c83a7d022b514c34 /Source/Core/DolphinQt/Debugger/WatchWidget.cpp | |
| parent | 3dbaf38eae8415f6ed8420ab36b49358c39cf3eb (diff) | |
Revert "Audit uses of IsRunning and GetState"
This reverts commit 72cf2bdb87f09deff22e1085de3290126aa4ad05.
SYSCONF settings are getting cleared when they shouldn't be. Let's
revert the change until I get proper time to figure out why it's broken.
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/WatchWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/WatchWidget.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp index 170bfcc792..75d3f13ee6 100644 --- a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp @@ -195,11 +195,10 @@ void WatchWidget::Update() QBrush brush = QPalette().brush(QPalette::Text); - const bool core_is_running = Core::IsRunning(m_system); - if (!core_is_running || !PowerPC::MMU::HostIsRAMAddress(guard, entry.address)) + if (!Core::IsRunning(m_system) || !PowerPC::MMU::HostIsRAMAddress(guard, entry.address)) brush.setColor(Qt::red); - if (core_is_running) + if (Core::IsRunning(m_system)) { if (PowerPC::MMU::HostIsRAMAddress(guard, entry.address)) { |
