Debugger: Make sure breakpoint memory range is valid
This commit is contained in:
parent
703543204f
commit
5656c8a071
1 changed files with 10 additions and 0 deletions
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
@ -110,6 +111,15 @@ namespace Mesen.GUI.Debugger
|
|||
}
|
||||
picExpressionWarning.Visible = false;
|
||||
|
||||
if(radRange.Checked) {
|
||||
int start = 0, end = 0;
|
||||
int.TryParse(txtFrom.Text, NumberStyles.HexNumber, null, out start);
|
||||
int.TryParse(txtTo.Text, NumberStyles.HexNumber, null, out end);
|
||||
if(end < start) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return chkRead.Checked || chkWrite.Checked || chkExec.Checked || chkReadVram.Checked || chkWriteVram.Checked || txtCondition.Text.Length > 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue