From 56c523ef9309afaa32ac9f9d97f8e06194bcb7d1 Mon Sep 17 00:00:00 2001 From: Sour Date: Mon, 18 Feb 2019 20:43:24 -0500 Subject: [PATCH] Debugger: Nametable Viewer - Fixed "add breakpoint" shortcut trying to add a breakpoint to the palette instead of nametable ram --- GUI.NET/Debugger/Controls/ctrlNametableViewer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GUI.NET/Debugger/Controls/ctrlNametableViewer.cs b/GUI.NET/Debugger/Controls/ctrlNametableViewer.cs index adfc60fa..a6eb1c7a 100644 --- a/GUI.NET/Debugger/Controls/ctrlNametableViewer.cs +++ b/GUI.NET/Debugger/Controls/ctrlNametableViewer.cs @@ -577,7 +577,7 @@ namespace Mesen.GUI.Debugger.Controls private void mnuEditInMemoryViewer_Click(object sender, EventArgs e) { - DebugWindowManager.OpenMemoryViewer(_currentPpuAddress, DebugMemoryType.PpuMemory); + DebugWindowManager.OpenMemoryViewer(_tileInfo.PpuAddress, DebugMemoryType.PpuMemory); } private void mnuToggleBreakpoint_Click(object sender, EventArgs e) @@ -586,7 +586,7 @@ namespace Mesen.GUI.Debugger.Controls return; } - PpuAddressTypeInfo addressInfo = InteropEmu.DebugGetPpuAbsoluteAddressAndType((uint)_currentPpuAddress); + PpuAddressTypeInfo addressInfo = InteropEmu.DebugGetPpuAbsoluteAddressAndType((uint)_tileInfo.PpuAddress); BreakpointManager.EditBreakpoint(new Breakpoint() { MemoryType = addressInfo.Type.ToMemoryType(),