lua: client.isturbo() and client.isseeking()
This commit is contained in:
parent
68a0fcf408
commit
eea6740722
|
@ -609,7 +609,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private bool IsTurboSeeking => PauseOnFrame.HasValue && Global.Config.TurboSeek;
|
||||
|
||||
private bool IsTurboing => Global.ClientControls["Turbo"] || IsTurboSeeking;
|
||||
public bool IsTurboing => Global.ClientControls["Turbo"] || IsTurboSeeking;
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
|
@ -150,6 +150,18 @@ namespace BizHawk.Client.EmuHawk
|
|||
return GlobalWin.MainForm.EmulatorPaused;
|
||||
}
|
||||
|
||||
[LuaMethod("isturbo", "Returns true if emulator is in turbo mode, otherwise, false")]
|
||||
public static bool IsTurbo()
|
||||
{
|
||||
return GlobalWin.MainForm.IsTurboing;
|
||||
}
|
||||
|
||||
[LuaMethod("isseeking", "Returns true if emulator is seeking, otherwise, false")]
|
||||
public static bool IsSeeking()
|
||||
{
|
||||
return GlobalWin.MainForm.IsSeeking;
|
||||
}
|
||||
|
||||
[LuaMethod("opencheats", "opens the Cheats dialog")]
|
||||
public static void OpenCheats()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue