move BreakpointList to Client.Common

This commit is contained in:
adelikat 2020-07-03 19:49:29 -05:00
parent 2cbe0fb3d9
commit d775067037
2 changed files with 181 additions and 181 deletions

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using BizHawk.Emulation.Common;
namespace BizHawk.Client.EmuHawk
namespace BizHawk.Client.Common
{
public class BreakpointList : List<Breakpoint>
{
@ -117,7 +117,7 @@ namespace BizHawk.Client.EmuHawk
public MemoryCallbackType Type { get; set; }
public string Name { get; }
internal bool ReadOnly { get; set; }
public bool ReadOnly { get; set; }
// Adds an existing callback
public Breakpoint(IDebuggable core, IMemoryCallback callback)

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
using BizHawk.Client.Common;
using BizHawk.Client.EmuHawk.Properties;
using BizHawk.Common.NumberExtensions;
using BizHawk.Emulation.Common;
@ -144,7 +144,7 @@ namespace BizHawk.Client.EmuHawk
{
var b = CreateAddBreakpointDialog(BreakpointOperation.Add);
if (b.ShowHawkDialog() == DialogResult.OK)
if (b.ShowHawkDialog().IsOk())
{
_breakpoints.Add(Core, MemoryDomains.SystemBus.Name, b.Address, b.AddressMask, b.BreakType);
}