Skip to content

Make branch load lua event more useful#4621

Merged
vadosnaprimer merged 1 commit intomasterfrom
branchload
Apr 13, 2026
Merged

Make branch load lua event more useful#4621
vadosnaprimer merged 1 commit intomasterfrom
branchload

Conversation

@SuuperW
Copy link
Copy Markdown
Contributor

@SuuperW SuuperW commented Feb 9, 2026

I have a Lua script for tracking RNG, that includes logic that runs when rewinding. It also has some logic to handle branch loads, but this fails because Lua can't know a branch was loaded until after the regular Lua after-frame update. This PR fixes that by invoking the branch load event earlier.

…kes it possible for Lua to recognize a branch load before running logic meant to respond to rewinding.
Comment thread src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs
@YoshiRulz YoshiRulz added Tool: TAStudio re: Lua API/scripting Relating to EmuHawk's Lua API (not the Lua Console) labels Apr 12, 2026
@vadosnaprimer vadosnaprimer merged commit 040a7d6 into master Apr 13, 2026
8 checks passed
@vadosnaprimer vadosnaprimer deleted the branchload branch April 13, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

re: Lua API/scripting Relating to EmuHawk's Lua API (not the Lua Console) Tool: TAStudio

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants