Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -Use static pushback vector that contains the lua state, the filename and status booleans (started, savestates etc)
- -When emulation starts Init() gets called: Find all lua files that start with an _ and add them to the vector to be launched immediately
- -On shutdown of emulation remove all active scripts and delete the lua states so the user can edit the files
- -Have Launch Script UI under Zelda tab that refreshes a dropdown list of all script files every time it is Shown (closed and re-opened)
- -Launching a script places it inside the vector as well, also have button to cancel a script and remove it based on filename to allow quick editing
- -Split superswim and normal script update calls in SI_GCController
- -Normal script updates check all lua states in the vector, check if a script needs to be launched (hasStarted = false) and updates all the started ones (scriptUpdate, scriptStart, scriptEnd)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement