Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow saving new branches via Lua? #4073

Open
RetroEdit opened this issue Oct 3, 2024 · 0 comments
Open

Allow saving new branches via Lua? #4073

RetroEdit opened this issue Oct 3, 2024 · 0 comments
Labels
Enhancement For feature requests or possible improvements re: Lua API/scripting Relating to EmuHawk's Lua API (not the Lua Console) Tool: TAStudio

Comments

@RetroEdit
Copy link
Contributor

RetroEdit commented Oct 3, 2024

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 to 10 branches 9 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.

@YoshiRulz YoshiRulz added Enhancement For feature requests or possible improvements Tool: TAStudio re: Lua API/scripting Relating to EmuHawk's Lua API (not the Lua Console) labels Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For feature requests or possible improvements re: Lua API/scripting Relating to EmuHawk's Lua API (not the Lua Console) Tool: TAStudio
Projects
None yet
Development

No branches or pull requests

2 participants