move games list, suppress CR, rebuild store after anim, don't show text page 2

This commit is contained in:
Peter Ferrie 2020-03-23 09:38:27 -07:00
parent 3df2664149
commit e156bf92ad
5 changed files with 7 additions and 3 deletions

View File

@ -122,7 +122,7 @@ gFXStore
gDFXStore
!word $6000
gSearchStore
!word $8000
!word $8200
gSlideshowStore
!word $0800
gGlobalPrefsStore

View File

@ -360,10 +360,10 @@ CopyDevs
+LDAY SRC ; (SRC) points to free space after the OKVS data structure we just created
+STAY gGamesListStore ; save pointer to free space for next store
jsr LoadFile ; load games list file into $8000
jsr LoadFile ; load games list file into $8200
!word kRootDirectory
!word @kGameListConfFile
- !word $8000
- !word $8200
jsr ParseGamesList ; parse games list into OKVS data structure in LC RAM bank
!word gGamesListStore
!word -

View File

@ -131,5 +131,7 @@ IncAndGetChar
bne +
inc $FF
+ lda ($FE),y
cmp #$0D ; CR - hide it
beq IncAndGetChar
.parseKeyValueDone
rts

View File

@ -60,6 +60,7 @@ MaybeAnimateTitle
jsr Launch ; execute the animation
jsr BuildSearchStore
jsr ResyncPage ; we don't know which HGR page is showing
; when the animation returns, so resync
; the current one with our OffscreenPage

View File

@ -102,6 +102,7 @@ SearchMode
stx gGameToLaunch ; $FF = no game selected
jsr BuildSearchStore
jsr Home ; clear screen (switches to text mode)
stx OffscreenPage ; don't show text page 2 by accident
jsr OnInputChanged ; draw UI offscreen
jsr HGRMode ; show HGR screen
jsr ResyncPage