Debugger: Disable "Break on decayed OAM read" option if oam decay emulation is disabled.

This commit is contained in:
Sour 2018-07-06 18:13:17 -04:00
parent 9f12f1c756
commit 496097f09d
2 changed files with 6 additions and 0 deletions

View file

@ -1177,6 +1177,7 @@ namespace Mesen.GUI.Debugger
this.mnuBreakOptions.Name = "mnuBreakOptions";
this.mnuBreakOptions.Size = new System.Drawing.Size(266, 22);
this.mnuBreakOptions.Text = "Break Options";
this.mnuBreakOptions.DropDownOpening += new System.EventHandler(this.mnuBreakOptions_DropDownOpening);
//
// mnuBreakOnReset
//

View file

@ -1532,5 +1532,10 @@ namespace Mesen.GUI.Debugger
mnuShowFunctionLabelLists.Enabled = !mnuUseVerticalLayout.Checked;
this.UpdateMinimumSize();
}
private void mnuBreakOptions_DropDownOpening(object sender, EventArgs e)
{
this.mnuBreakOnDecayedOamRead.Enabled = ConfigManager.Config.EmulationInfo.EnableOamDecay;
}
}
}