Fix NRE in `movie.getinput`
This commit is contained in:
parent
98fc076c5b
commit
348866b75a
|
@ -30,7 +30,9 @@ namespace BizHawk.Client.Common
|
|||
[LuaMethodExample("local nlmovget = movie.getinput( 500 );")]
|
||||
[LuaMethod("getinput", "Returns a table of buttons pressed on a given frame of the loaded movie")]
|
||||
public LuaTable GetInput(int frame, int? controller = null)
|
||||
=> _th.DictToTable(APIs.Movie.GetInput(frame, controller));
|
||||
=> APIs.Movie.GetInput(frame, controller) is IReadOnlyDictionary<string, object> dict
|
||||
? _th.DictToTable(dict)
|
||||
: null;
|
||||
|
||||
[LuaMethodExample("local stmovget = movie.getinputasmnemonic( 500 );")]
|
||||
[LuaMethod("getinputasmnemonic", "Returns the input of a given frame of the loaded movie in a raw inputlog string")]
|
||||
|
|
Loading…
Reference in New Issue