Lua - implement movie.getinputasmnemonic()

This commit is contained in:
adelikat 2014-05-18 21:26:27 +00:00
parent 3d10d67fea
commit d2bc1b89a3
1 changed files with 14 additions and 0 deletions

View File

@ -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"