move BreakpointList to Client.Common
This commit is contained in:
parent
2cbe0fb3d9
commit
d775067037
|
@ -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)
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue