tastudio/lua - implement tastudio.setlag()
This commit is contained in:
parent
3541c9e975
commit
7ecf96772c
|
@ -469,6 +469,11 @@ namespace BizHawk.Client.Common
|
|||
{
|
||||
LagLog.InsertHistoryAt(frame, isLag);
|
||||
}
|
||||
|
||||
public void SetLag(int frame, bool? value)
|
||||
{
|
||||
LagLog[frame] = value;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
|
@ -110,6 +110,18 @@ namespace BizHawk.Client.EmuHawk
|
|||
return null;
|
||||
}
|
||||
|
||||
[LuaMethodAttributes(
|
||||
"setlag",
|
||||
"Sets the lag information for the given frame, if the frame does not exist in the lag log, it will be added. If the value is null, the lag information for that frame will be removed"
|
||||
)]
|
||||
public void SetLag(int frame, bool? value)
|
||||
{
|
||||
if (Engaged())
|
||||
{
|
||||
Tastudio.CurrentTasMovie.SetLag(frame, value);
|
||||
}
|
||||
}
|
||||
|
||||
[LuaMethodAttributes(
|
||||
"hasstate",
|
||||
"Returns whether or not the given frame has a savestate associated with it"
|
||||
|
|
Loading…
Reference in New Issue