make $exit work without a quest loaded on most versions

This commit is contained in:
Martin Michelsen
2025-04-24 18:58:20 -07:00
parent ebef2f2bd1
commit 1ad2c47444
21 changed files with 405 additions and 12 deletions
@@ -0,0 +1,17 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
li r0, 0
stw [r13 - 0x46E8], r0
stw [r13 - 0x46E4], r0
li r0, 1
sth [r13 - 0x48D8], r0
blr