summaryrefslogtreecommitdiff
path: root/home/overworld.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/overworld.asm')
-rw-r--r--home/overworld.asm16
1 files changed, 8 insertions, 8 deletions
diff --git a/home/overworld.asm b/home/overworld.asm
index afa73cc..2b37b7c 100644
--- a/home/overworld.asm
+++ b/home/overworld.asm
@@ -29,11 +29,11 @@ CheckStartmenuSelectHook:
ldh a, [hStartmenuCloseAndSelectHookEnable]
and a
ret z ; hook is disabled
- ld hl, StartmenuCloseAndSelectHookPtr
+ ld hl, wQueuedScriptAddr
ld a, [hli]
ld h, [hl]
ld l, a
- ld a, [StartmenuCloseAndSelectHookBank]
+ ld a, [wQueuedScriptBank]
call FarCall_hl
ld hl, hStartmenuCloseAndSelectHookEnable
xor a
@@ -178,18 +178,18 @@ ScheduleColumnRedrawHelper: ; 2d10 (0:2d10)
ret
if DEBUG
-SECTION "Install StartMenu Hook Function", ROM0[$35EC]
+SECTION "QueueScript", ROM0[$35EC]
else
-SECTION "Install StartMenu Hook Function", ROM0[$35B0]
+SECTION "QueueScript", ROM0[$35B0]
endc
-InstallStartmenuCloseAndSelectHook::
+QueueScript::
; Install a function that is called as soon as
; the start menu is closed or directly after
; the select button function ran
- ld [StartmenuCloseAndSelectHookBank], a
+ ld [wQueuedScriptBank], a
ld a, l
- ld [StartmenuCloseAndSelectHookPtr], a
+ ld [wQueuedScriptAddr], a
ld a, h
- ld [StartmenuCloseAndSelectHookPtr + 1], a
+ ld [wQueuedScriptAddr + 1], a
ret