Allow disabling frame skip from Lua (resolves #1655)
This commit is contained in:
parent
ab042fafd0
commit
0840687d4e
|
@ -106,10 +106,10 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
|
||||
[LuaMethodExample("client.frameskip( 8 );")]
|
||||
[LuaMethod("frameskip", "Sets the frame skip value of the client UI")]
|
||||
[LuaMethod("frameskip", "Sets the frame skip value of the client UI (use 0 to disable)")]
|
||||
public void FrameSkip(int numFrames)
|
||||
{
|
||||
if (numFrames > 0)
|
||||
if (numFrames >= 0)
|
||||
{
|
||||
Global.Config.FrameSkip = numFrames;
|
||||
GlobalWin.MainForm.FrameSkipMessage();
|
||||
|
|
Loading…
Reference in New Issue