If not clock throttle, Disable speed settings in the menu, and warn user when they press the increase/decrease speed hotkeys

This commit is contained in:
adelikat 2014-06-21 20:18:14 +00:00
parent a2829f8d9a
commit 762048018e
2 changed files with 19 additions and 0 deletions

View File

@ -719,6 +719,13 @@ namespace BizHawk.Client.EmuHawk
Speed75MenuItem.Image = (Global.Config.SpeedPercentAlternate == 75) ? Properties.Resources.FastForward : null;
Speed50MenuItem.Checked = Global.Config.SpeedPercent == 50;
Speed50MenuItem.Image = (Global.Config.SpeedPercentAlternate == 50) ? Properties.Resources.FastForward : null;
Speed50MenuItem.Enabled =
Speed75MenuItem.Enabled =
Speed100MenuItem.Enabled =
Speed150MenuItem.Enabled =
Speed200MenuItem.Enabled =
Global.Config.ClockThrottle;
}
private void KeyPriorityMenuItem_DropDownOpened(object sender, EventArgs e)

View File

@ -2021,6 +2021,12 @@ namespace BizHawk.Client.EmuHawk
private void IncreaseSpeed()
{
if (!Global.Config.ClockThrottle)
{
GlobalWin.OSD.AddMessage("Unable to change speed, please switch to clock throttle");
return;
}
var oldp = Global.Config.SpeedPercent;
int newp;
@ -2082,6 +2088,12 @@ namespace BizHawk.Client.EmuHawk
private void DecreaseSpeed()
{
if (!Global.Config.ClockThrottle)
{
GlobalWin.OSD.AddMessage("Unable to change speed, please switch to clock throttle");
return;
}
var oldp = Global.Config.SpeedPercent;
int newp;