42 lines
922 B
C#
42 lines
922 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using Mesen.GUI.Config;
|
|
using Mesen.GUI.Forms;
|
|
|
|
namespace Mesen.GUI.Debugger
|
|
{
|
|
public partial class frmBreakOn : BaseConfigForm
|
|
{
|
|
public frmBreakOn()
|
|
{
|
|
InitializeComponent();
|
|
|
|
nudCount.Value = ConfigManager.Config.DebugInfo.BreakOnValue;
|
|
}
|
|
|
|
protected override void OnShown(EventArgs e)
|
|
{
|
|
base.OnShown(e);
|
|
nudCount.Focus();
|
|
}
|
|
|
|
protected override void OnFormClosed(FormClosedEventArgs e)
|
|
{
|
|
base.OnFormClosed(e);
|
|
if(this.DialogResult == DialogResult.OK) {
|
|
int count = (int)nudCount.Value;
|
|
ConfigManager.Config.DebugInfo.BreakOnValue = count;
|
|
InteropEmu.DebugRun();
|
|
InteropEmu.DebugBreakOnScanline(count);
|
|
ConfigManager.ApplyChanges();
|
|
}
|
|
}
|
|
}
|
|
}
|