Lua - implement movie.getinputasmnemonic()
This commit is contained in:
parent
3d10d67fea
commit
d2bc1b89a3
|
@ -42,6 +42,20 @@ namespace BizHawk.Client.Common
|
|||
return input;
|
||||
}
|
||||
|
||||
[LuaMethodAttributes(
|
||||
"getinputasmnemonic",
|
||||
"Returns the input of a given frame of the loaded movie in a raw inputlog string"
|
||||
)]
|
||||
public string GetInputAsMnemonic(int frame)
|
||||
{
|
||||
if (frame < Global.MovieSession.Movie.InputLogLength)
|
||||
{
|
||||
return Global.MovieSession.Movie.GetInput(frame);
|
||||
}
|
||||
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
[LuaMethodAttributes(
|
||||
"getreadonly",
|
||||
"Returns true if the movie is in read-only mode, false if in read+write"
|
||||
|
|
Loading…
Reference in New Issue