lua: emu.setislagged()
This commit is contained in:
parent
d39aa6433e
commit
3c779a897b
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue