File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/BizHawk.Client.EmuHawk/tools/Lua/Libraries Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -490,12 +490,12 @@ public void LoadBranch(int index)
490
490
[ LuaMethod (
491
491
name : "find_marker_on_or_before" ,
492
492
description : "Returns the frame number of the marker closest to the given frame (including that frame, but not after it)."
493
- + " This may be the power-on marker at 0."
493
+ + " This may be the power-on marker at 0. Returns -1 if the arguments are invalid or TAStudio isn't active. "
494
494
+ " If branchID is specified, searches the markers in that branch instead." ) ]
495
495
public int FindMarkerOnOrBefore ( int frame , string /*?*/ branchID = null )
496
496
=> Engaged ( ) && MarkerListForBranch ( branchID ) is TasMovieMarkerList markers
497
- ? markers . PreviousOrCurrent ( frame ) . Frame
498
- : default ;
497
+ ? markers . PreviousOrCurrent ( frame ) ? . Frame ?? - 1
498
+ : - 1 ;
499
499
500
500
[ LuaMethodExample ( """
501
501
local marker_label = tastudio.getmarker(tastudio.get_frames_with_markers()[2]);
You can’t perform that action at this time.
0 commit comments