Disable SNES, Intellivision, Colecovision controller settings menu items when a movie is active

This commit is contained in:
adelikat 2017-05-22 12:26:36 -05:00
parent fd1338a46f
commit c1bff4b19c
2 changed files with 9 additions and 0 deletions

View File

@ -3162,6 +3162,7 @@
this.IntvSubMenu.Name = "IntvSubMenu";
this.IntvSubMenu.Size = new System.Drawing.Size(39, 19);
this.IntvSubMenu.Text = "&Intv";
this.IntvSubMenu.DropDownOpened += new System.EventHandler(this.IntvSubMenu_DropDownOpened);
//
// IntVControllerSettingsMenuItem
//

View File

@ -2076,6 +2076,8 @@ namespace BizHawk.Client.EmuHawk
{
SnesGBInSGBMenuItem.Visible = false;
}
SNESControllerConfigurationMenuItem.Enabled = !Global.MovieSession.Movie.IsActive;
}
private void SNESDisplayMenuItem_DropDownOpened(object sender, EventArgs e)
@ -2177,6 +2179,7 @@ namespace BizHawk.Client.EmuHawk
{
var ss = ((ColecoVision)Emulator).GetSyncSettings();
ColecoSkipBiosMenuItem.Checked = ss.SkipBiosIntro;
ColecoControllerSettingsMenuItem.Enabled = !Global.MovieSession.Movie.IsActive;
}
private void ColecoSkipBiosMenuItem_Click(object sender, EventArgs e)
@ -2403,6 +2406,11 @@ namespace BizHawk.Client.EmuHawk
#region Intv
private void IntvSubMenu_DropDownOpened(object sender, EventArgs e)
{
IntVControllerSettingsMenuItem.Enabled = !Global.MovieSession.Movie.IsActive;
}
private void IntVControllerSettingsMenuItem_Click(object sender, EventArgs e)
{
new IntvControllerSettings().ShowDialog();