Change `tastudio.getmarker` to return `nil` (not empty string) on fail
This commit is contained in:
parent
ff04b85199
commit
90f2b27a34
|
@ -447,9 +447,9 @@ namespace BizHawk.Client.EmuHawk
|
|||
[LuaMethod(
|
||||
name: "getmarker",
|
||||
description: "Returns the label of the marker on the given frame."
|
||||
+ " If that frame doesn't have a marker (or TAStudio isn't running), returns an empty string."
|
||||
+ " If that frame doesn't have a marker (or TAStudio isn't running), returns nil."
|
||||
+ " If branchIndex is specified, searches the markers in that branch instead.")]
|
||||
public string GetMarker(int frame, int? branchIndex = null)
|
||||
public string/*?*/ GetMarker(int frame, int? branchIndex = null)
|
||||
{
|
||||
if (Engaged())
|
||||
{
|
||||
|
@ -460,7 +460,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
}
|
||||
|
||||
return "";
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <remarks>assumes a TAStudio project is loaded</remarks>
|
||||
|
|
Loading…
Reference in New Issue