From e2f4400f4941def98af3e2b30696f531baada7a7 Mon Sep 17 00:00:00 2001 From: JoshuaMK <60854312+JoshuaMKW@users.noreply.github.com> Date: Sun, 23 Oct 2022 18:44:12 -0500 Subject: Make SetPatch responsible for overwriting old patches --- Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp') 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(); } -- cgit v1.2.3