Skip to content

Commit

Permalink
actually fix all the things
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoconlechuga committed Jun 11, 2019
1 parent ee3a3e3 commit 042700e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/hooks.asm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 042700e

Please sign in to comment.