mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-23 12:33:32 +00:00
combine DrawGameTitleInActionSlideshowHGR code
This commit is contained in:
parent
3d816934af
commit
5fecf8bde9
@ -91,15 +91,13 @@ ResetVector ; 6 bytes, copied to $100
|
||||
!source "src/ui.credits.a" ; \__ execution falls through
|
||||
!source "src/ui.browse.mode.a" ; /
|
||||
|
||||
!source "src/ui.attract.hgr.a" ; \__ execution falls through
|
||||
!source "src/ui.font.a" ; /
|
||||
|
||||
!source "src/ui.attract.hgr.a"
|
||||
!source "src/ui.font.a"
|
||||
!source "src/ui.overlay.a"
|
||||
!source "src/ui.offscreen.a"
|
||||
!source "src/ui.attract.mode.a"
|
||||
!source "src/ui.attract.shr.a"
|
||||
!source "src/ui.attract.gr.a"
|
||||
|
||||
!source "src/ui.cheats.a"
|
||||
!source "src/glue.launch.a"
|
||||
!source "src/okvs.a"
|
||||
|
@ -205,6 +205,12 @@ DHGRActionCallback
|
||||
!word kDHGRActionDirectory
|
||||
+ !word $FDFD
|
||||
|
||||
lda #$EA ; NOP
|
||||
+HIDE_NEXT_2_BYTES
|
||||
DrawGameTitleInActionSlideshowHGR
|
||||
lda #$60 ; RTS
|
||||
sta @fallThroughForDHGR
|
||||
|
||||
; display game name in the bottom-left corner
|
||||
lda #22
|
||||
sta VTAB
|
||||
@ -245,10 +251,11 @@ DHGRActionCallback
|
||||
+LDADDR gPathname
|
||||
sec
|
||||
jsr DrawString
|
||||
;RedrawForDHGR
|
||||
jsr SwitchToBank2
|
||||
pla
|
||||
@fallThroughForDHGR
|
||||
nop ; SMC
|
||||
sta HTAB
|
||||
jsr SwitchToBank2
|
||||
ldx gPathname
|
||||
dex
|
||||
|
||||
|
@ -158,41 +158,4 @@ HGRActionCallback
|
||||
+ !word $FDFD ; SMC
|
||||
!word $4000
|
||||
|
||||
; display game name in the bottom-left corner
|
||||
lda #22
|
||||
sta VTAB
|
||||
lda #0 ; solid horizontal bar character
|
||||
jsr @resetline
|
||||
lda (SAVE),y ; (SAVE) -> game title, Y = 0, so A = title length
|
||||
clc
|
||||
adc #$03
|
||||
sta gPathname
|
||||
lda #7 ; top-right rounded corner character
|
||||
jsr @drawline
|
||||
|
||||
inc VTAB
|
||||
lda #" "
|
||||
jsr @resetline
|
||||
lda (SAVE),y ; A = title length
|
||||
tay
|
||||
- lda (SAVE),y
|
||||
sta gPathname+1,y
|
||||
dey
|
||||
bne -
|
||||
lda #3 ; solid vertical bar character
|
||||
jsr @drawline
|
||||
|
||||
jmp ExecuteTransitionAt6000AndWait
|
||||
@resetline
|
||||
ldy #40
|
||||
- sta gPathname,y
|
||||
dey
|
||||
bne -
|
||||
sty HTAB
|
||||
rts
|
||||
@drawline
|
||||
ldy gPathname
|
||||
sta gPathname,y
|
||||
+LDADDR gPathname
|
||||
sec
|
||||
; /!\ execution falls through to ui.font/DrawString
|
||||
jmp DrawGameTitleInActionSlideshowHGR
|
||||
|
Loading…
Reference in New Issue
Block a user