Fix cheat editor showing "0x" prefix when not hex type
This commit is contained in:
parent
5a55f04f1e
commit
8c3f857ab6
|
@ -254,9 +254,10 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void DisplayTypeDropDown_SelectedIndexChanged(object sender, EventArgs e)
|
private void DisplayTypeDropDown_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
ValueBox.Type =
|
var newDisp Watch.StringToDisplayType(DisplayTypeDropDown.SelectedItem.ToString()); //TODO use Tag or Index
|
||||||
CompareBox.Type =
|
ValueBox.Type = CompareBox.Type = newDisp;
|
||||||
Watch.StringToDisplayType(DisplayTypeDropDown.SelectedItem.ToString());
|
ValueHexIndLabel.Text = CompareHexIndLabel.Text = newDisp is WatchDisplayType.Hex ? HexInd : string.Empty; //TODO "0b" for binary
|
||||||
|
// NOT writing to `_cheat`, the "Override" button handles that
|
||||||
}
|
}
|
||||||
|
|
||||||
private void AddButton_Click(object sender, EventArgs e)
|
private void AddButton_Click(object sender, EventArgs e)
|
||||||
|
|
Loading…
Reference in New Issue