lua: emu.setislagged()

This commit is contained in:
feos 2016-01-27 16:41:41 +03:00
parent d39aa6433e
commit 3c779a897b
1 changed files with 16 additions and 0 deletions

View File

@ -174,6 +174,22 @@ namespace BizHawk.Client.Common
}
}
[LuaMethodAttributes(
"setislagged",
"marks the current frame as a lag frame"
)]
public void SetIsLagged(bool value = true)
{
if (InputPollableCore != null)
{
InputPollableCore.IsLagFrame = value;
}
else
{
Log(string.Format("Can not set lag information, {0} does not implement IInputPollable", Emulator.Attributes().CoreName));
}
}
[LuaMethodAttributes(
"lagcount",
"Returns the current lag count"