From 7e5848797024637cb54fb22bdc52183fa60955c6 Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Wed, 12 Jan 2011 02:08:47 +0000 Subject: [PATCH] Emulation Menu Drop Down event now checks the Reset Control to see if it exists. If it doesn't, the reset menu item is disabled --- BizHawk.MultiClient/MainForm.Designer.cs | 1 + BizHawk.MultiClient/MainForm.cs | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/BizHawk.MultiClient/MainForm.Designer.cs b/BizHawk.MultiClient/MainForm.Designer.cs index a783c3ca15..3365bd6e86 100644 --- a/BizHawk.MultiClient/MainForm.Designer.cs +++ b/BizHawk.MultiClient/MainForm.Designer.cs @@ -432,6 +432,7 @@ this.emulationToolStripMenuItem.Name = "emulationToolStripMenuItem"; this.emulationToolStripMenuItem.Size = new System.Drawing.Size(65, 20); this.emulationToolStripMenuItem.Text = "&Emulation"; + this.emulationToolStripMenuItem.DropDownOpened += new System.EventHandler(this.emulationToolStripMenuItem_DropDownOpened); // // pauseToolStripMenuItem // diff --git a/BizHawk.MultiClient/MainForm.cs b/BizHawk.MultiClient/MainForm.cs index f4d253b744..65a78510d9 100644 --- a/BizHawk.MultiClient/MainForm.cs +++ b/BizHawk.MultiClient/MainForm.cs @@ -554,5 +554,13 @@ namespace BizHawk.MultiClient CloseGame(); Global.Emulator = new NullEmulator(); } + + private void emulationToolStripMenuItem_DropDownOpened(object sender, EventArgs e) + { + if (Global.Emulator.ControllerDefinition.BoolButtons.Contains("Reset")) + resetToolStripMenuItem.Enabled = true; + else + resetToolStripMenuItem.Enabled = false; + } } } \ No newline at end of file