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:
parent
a2829f8d9a
commit
762048018e
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue