SkyTemple / ExplorerScript

ExplorerScript and SSBScript: Script languages for decompiled SSB (Pokémon Mystery Dungeon Explorers of Sky)
MIT License
15 stars 6 forks source link

Compiler: Add `end;` operations as the last op for all routines #42

Open theCapypara opened 1 month ago

theCapypara commented 1 month ago

This will prevent memory unsafeness when the game encounters routines where the user forgot to insert an end/hold/return at the end of the routine.

theCapypara commented 4 weeks ago

I began to draft this at the branch fix-42 + skytemple-files branch explorerscript-fix-42. However it mostly breaks the flow checks with custom scripts that didn't end properly and there seems to be at least one coroutine in the base game which is also not playing along...