From a2d787efa4a84f3e7960b8a12adf736c4eefea00 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 12 Oct 2013 03:10:05 +0000 Subject: [PATCH] turbo should bypass the 240fps cap (as opposed to fast forward) --- BizHawk.MultiClient/MainForm.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/BizHawk.MultiClient/MainForm.cs b/BizHawk.MultiClient/MainForm.cs index aa5a7c1ba3..2328715b5b 100644 --- a/BizHawk.MultiClient/MainForm.cs +++ b/BizHawk.MultiClient/MainForm.cs @@ -596,7 +596,8 @@ namespace BizHawk.MultiClient void SyncThrottle() { - bool fastforward = Global.ClientControls["Fast Forward"] || FastForward || Global.ClientControls["Turbo"]; + bool fastforward = Global.ClientControls["Fast Forward"] || FastForward; + bool superfastforward = Global.ClientControls["Turbo"]; Global.ForceNoThrottle = unthrottled || fastforward; // realtime throttle is never going to be so exact that using a double here is wrong @@ -604,10 +605,20 @@ namespace BizHawk.MultiClient throttle.signal_paused = EmulatorPaused || Global.Emulator is NullEmulator; throttle.signal_unthrottle = unthrottled; + if (fastforward) + { throttle.SetSpeedPercent(Global.Config.SpeedPercentAlternate); + } + else if (superfastforward) + { + throttle.SetSpeedPercent(int.MaxValue); + } else + { throttle.SetSpeedPercent(Global.Config.SpeedPercent); + } + } void SetSpeedPercentAlternate(int value)