Debugger: Limit condition display length in break notification

This commit is contained in:
Sour 2018-12-23 11:58:46 -05:00
parent 022085082b
commit 195da9fa3d

View file

@ -507,7 +507,12 @@ namespace Mesen.GUI.Debugger
message += ": " + ResourceHelper.GetEnumText(bpType) + " ($" + bpAddress.ToString("X4") + ")";
}
if(!string.IsNullOrWhiteSpace(bp.Condition)) {
message += Environment.NewLine + bp.Condition;
string cond = bp.Condition.Trim();
if(cond.Length > 27) {
message += Environment.NewLine + cond.Substring(0, 24) + "...";
} else {
message += Environment.NewLine + cond;
}
}
}
} else if(source == BreakSource.CpuStep || source == BreakSource.PpuStep) {