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
This commit is contained in:
parent
d0d4d441c9
commit
7e58487970
|
@ -432,6 +432,7 @@
|
||||||
this.emulationToolStripMenuItem.Name = "emulationToolStripMenuItem";
|
this.emulationToolStripMenuItem.Name = "emulationToolStripMenuItem";
|
||||||
this.emulationToolStripMenuItem.Size = new System.Drawing.Size(65, 20);
|
this.emulationToolStripMenuItem.Size = new System.Drawing.Size(65, 20);
|
||||||
this.emulationToolStripMenuItem.Text = "&Emulation";
|
this.emulationToolStripMenuItem.Text = "&Emulation";
|
||||||
|
this.emulationToolStripMenuItem.DropDownOpened += new System.EventHandler(this.emulationToolStripMenuItem_DropDownOpened);
|
||||||
//
|
//
|
||||||
// pauseToolStripMenuItem
|
// pauseToolStripMenuItem
|
||||||
//
|
//
|
||||||
|
|
|
@ -554,5 +554,13 @@ namespace BizHawk.MultiClient
|
||||||
CloseGame();
|
CloseGame();
|
||||||
Global.Emulator = new NullEmulator();
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue