diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-01-09 21:49:50 +0100 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-01-27 15:22:41 +0100 |
| commit | be8d0b76ca9740138b9747234ebbfaa6caa9f5fb (patch) | |
| tree | 159d080db1ab886e52244b1bfcbc660a5a5eeba7 /Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | |
| parent | 82f317087656382b855fec07df16f8d217e6fee4 (diff) | |
PowerPC: Remove PC macro.
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp index 77d73a8eff..b4cfcb19eb 100644 --- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp @@ -167,11 +167,11 @@ CodeViewWidget::CodeViewWidget() &CodeViewWidget::FontBasedSizing); connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, [this] { - m_address = PC; + m_address = PowerPC::ppcState.pc; Update(); }); connect(Host::GetInstance(), &Host::UpdateDisasmDialog, this, [this] { - m_address = PC; + m_address = PowerPC::ppcState.pc; Update(); }); @@ -567,9 +567,9 @@ void CodeViewWidget::OnContextMenu() menu->addAction(tr("Restore instruction"), this, &CodeViewWidget::OnRestoreInstruction); QString target; - if (addr == PC && running && Core::GetState() == Core::State::Paused) + if (addr == PowerPC::ppcState.pc && running && Core::GetState() == Core::State::Paused) { - const std::string line = PowerPC::debug_interface.Disassemble(PC); + const std::string line = PowerPC::debug_interface.Disassemble(PowerPC::ppcState.pc); const auto target_it = std::find(line.begin(), line.end(), '\t'); const auto target_end = std::find(target_it, line.end(), ','); |
