diff options
| author | JoshuaMK <60854312+JoshuaMKW@users.noreply.github.com> | 2022-10-23 18:44:12 -0500 |
|---|---|---|
| committer | JoshuaMK <60854312+JoshuaMKW@users.noreply.github.com> | 2022-10-26 22:46:49 -0500 |
| commit | e2f4400f4941def98af3e2b30696f531baada7a7 (patch) | |
| tree | 6035c82e6be71481058d7aa07b9a0dab83fd3202 /Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | |
| parent | 2594447c2589a2575d71129291151fb99b9a1f3f (diff) | |
Make SetPatch responsible for overwriting old patches
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp index cdccd40732..06676c4b21 100644 --- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp @@ -513,7 +513,6 @@ void CodeViewWidget::SetAddress(u32 address, SetAddressUpdate update) void CodeViewWidget::ReplaceAddress(u32 address, ReplaceWith replace) { - PowerPC::debug_interface.UnsetPatch(address); PowerPC::debug_interface.SetPatch(address, replace == ReplaceWith::BLR ? 0x4e800020 : 0x60000000); Update(); } @@ -823,7 +822,6 @@ void CodeViewWidget::OnReplaceInstruction() if (dialog.exec() == QDialog::Accepted) { - PowerPC::debug_interface.UnsetPatch(addr); PowerPC::debug_interface.SetPatch(addr, dialog.GetCode()); Update(); } |
