Debugger: Hex Viewer - Display selection length in decimal and hex
This commit is contained in:
parent
9d2e38c33c
commit
094cb1857b
1 changed files with 1 additions and 1 deletions
|
@ -442,7 +442,7 @@ namespace Mesen.GUI.Debugger.Controls
|
||||||
private void UpdateLocationLabel()
|
private void UpdateLocationLabel()
|
||||||
{
|
{
|
||||||
if(ctrlHexBox.SelectionLength > 0) {
|
if(ctrlHexBox.SelectionLength > 0) {
|
||||||
this.lblLocation.Text = $"Selection: ${ctrlHexBox.SelectionStart.ToString("X4")} - ${(ctrlHexBox.SelectionStart + ctrlHexBox.SelectionLength - 1).ToString("X4")} ({ctrlHexBox.SelectionLength} bytes)";
|
this.lblLocation.Text = $"Selection: ${ctrlHexBox.SelectionStart.ToString("X4")} - ${(ctrlHexBox.SelectionStart + ctrlHexBox.SelectionLength - 1).ToString("X4")}, {ctrlHexBox.SelectionLength} bytes (${ctrlHexBox.SelectionLength.ToString("X2")})";
|
||||||
} else {
|
} else {
|
||||||
this.lblLocation.Text = $"Location: ${ctrlHexBox.SelectionStart.ToString("X4")}";
|
this.lblLocation.Text = $"Location: ${ctrlHexBox.SelectionStart.ToString("X4")}";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue