diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-03-31 06:36:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-31 06:36:09 +0200 |
| commit | a2074a85831b873a5bf3e773ad903622400a3128 (patch) | |
| tree | d95a3a9da1585bdc638e273bc7f04fe6e172f6d0 /Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | |
| parent | 6e5f8d669227a7cfea247023c5aa2eeabe54f99a (diff) | |
| parent | b52a08d5332949c3b22f8434155cc8095d94df3a (diff) | |
Merge pull request #12645 from mitaclaw/ppc-symbols-signal
DolphinQt: A Ubiquitous Signal For When Symbols Change
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp index d841ca52af..730180cffd 100644 --- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp @@ -183,6 +183,8 @@ CodeViewWidget::CodeViewWidget() m_address = m_system.GetPPCState().pc; Update(); }); + connect(Host::GetInstance(), &Host::PPCSymbolsChanged, this, + qOverload<>(&CodeViewWidget::Update)); connect(&Settings::Instance(), &Settings::ThemeChanged, this, qOverload<>(&CodeViewWidget::Update)); @@ -884,8 +886,7 @@ void CodeViewWidget::OnAddFunction() Core::CPUThreadGuard guard(m_system); m_ppc_symbol_db.AddFunction(guard, addr); - emit SymbolsChanged(); - Update(&guard); + emit Host::GetInstance()->PPCSymbolsChanged(); } void CodeViewWidget::OnInsertBLR() @@ -934,8 +935,7 @@ void CodeViewWidget::OnRenameSymbol() if (good && !name.isEmpty()) { symbol->Rename(name.toStdString()); - emit SymbolsChanged(); - Update(); + emit Host::GetInstance()->PPCSymbolsChanged(); } } @@ -973,8 +973,7 @@ void CodeViewWidget::OnSetSymbolSize() Core::CPUThreadGuard guard(m_system); PPCAnalyst::ReanalyzeFunction(guard, symbol->address, *symbol, size); - emit SymbolsChanged(); - Update(&guard); + emit Host::GetInstance()->PPCSymbolsChanged(); } void CodeViewWidget::OnSetSymbolEndAddress() @@ -1001,8 +1000,7 @@ void CodeViewWidget::OnSetSymbolEndAddress() Core::CPUThreadGuard guard(m_system); PPCAnalyst::ReanalyzeFunction(guard, symbol->address, *symbol, address - symbol->address); - emit SymbolsChanged(); - Update(&guard); + emit Host::GetInstance()->PPCSymbolsChanged(); } void CodeViewWidget::OnReplaceInstruction() |
