From 042700eb1971ba9391f133d70f3ded0c1fb072e7 Mon Sep 17 00:00:00 2001 From: mateoconlechuga Date: Mon, 10 Jun 2019 19:31:56 -0600 Subject: [PATCH] actually fix all the things --- src/hooks.asm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/hooks.asm b/src/hooks.asm index 6e8f276..bd75f0b 100644 --- a/src/hooks.asm +++ b/src/hooks.asm @@ -441,19 +441,20 @@ hook_backup_ram: hook_execute_cesium: ld iy,ti.flags - call ti.ReleaseBuffer - xor a,a - ld (ti.menuCurrent),a call ti.CursorOff call ti.RunIndicOff di - res 2,(iy + 1) ; reset the edit buffer (previously released) - ld hl,$d02661 ; I have absolutely no idea what this is - res 7,(hl) + call ti.ClrGetKeyHook + ld a,ti.kQuit ; force out of whatever we are in + call ti.PullDownChk ; this is the only way to fix randInt(! ld a,ti.kQuit call ti.NewContext0 + call ti.CursorOff + call ti.RunIndicOff + xor a,a + ld (ti.menuCurrent),a ; make sure we aren't on a menu ld hl,data_string_cesium_name ; execute app - ld de,$d0082e ; honestly no idea what this address is... + ld de,$d0082e ; I have absolutely no idea what this is push de ld bc,8 push bc