Allow saving new branches via Lua? #4073
Labels
Enhancement
For feature requests or possible improvements
re: Lua API/scripting
Relating to EmuHawk's Lua API (not the Lua Console)
Tool: TAStudio
Surprisingly, as far as I can tell, there's not a way to create a new branch past slot 10 via Lua. To me, there should be an explicit function that creates a new branch like the
+
button in TAStudio.If there is a way, it's not well-documented.
savestate.save
is seemingly ignored by TAStudio.savestate.saveslot
can save up to10 branches9 branches, but anything outside of the range 1 to 10 is rejected.And then there is
tastudio.setbranchtext(string text, [int? index = nil])
which "adds the given message to the existing branch, or to the branch that will be created next if branch index is not specified". For a better API, queued naming seems like it should be deprecated in favor of a parameter in a branch creation function.The text was updated successfully, but these errors were encountered: