mirror of
https://github.com/a2-4am/4cade.git
synced 2025-02-19 20:30:42 +00:00
don't need to reload attract mode config data if we're skipping a module
This commit is contained in:
parent
7bf982ce7b
commit
c83910fd2d
@ -34,10 +34,11 @@ MegaAttractMode
|
|||||||
|
|
||||||
jsr BlankHGR ; switch to HGR page 1 (once cleared)
|
jsr BlankHGR ; switch to HGR page 1 (once cleared)
|
||||||
|
|
||||||
@next jsr LoadIndexedFile ; load pre-parsed attract mode configuration data into $6000
|
jsr LoadIndexedFile ; load pre-parsed attract mode configuration data into $6000
|
||||||
- !word $6000
|
- !word $6000
|
||||||
!word kAttractModeIndexRecord
|
!word kAttractModeIndexRecord
|
||||||
|
|
||||||
|
@next
|
||||||
jsr pref_get ; get attract mode module from prefs
|
jsr pref_get ; get attract mode module from prefs
|
||||||
!word kNextAttract
|
!word kNextAttract
|
||||||
!word -
|
!word -
|
||||||
@ -56,17 +57,14 @@ MegaAttractMode
|
|||||||
@mname !word $FDFD ; SMC
|
@mname !word $FDFD ; SMC
|
||||||
ldy #1
|
ldy #1
|
||||||
lda (PTR),y
|
lda (PTR),y
|
||||||
tax ; X = module type
|
tax ; X = module type as ASCII digit
|
||||||
and #$F0
|
|
||||||
cmp #$30
|
and #$0F ; do we want to display this module type
|
||||||
bne +
|
|
||||||
txa
|
|
||||||
and #$0F
|
|
||||||
tay
|
tay
|
||||||
lda gMegaAttractModeFilter ; do we want to display this module type
|
lda gMegaAttractModeFilter
|
||||||
and kAttractModeFilters, y
|
and kAttractModeFilters, y
|
||||||
beq @next
|
beq @next
|
||||||
+
|
|
||||||
+LD16 @mname ; A/Y = address of module name
|
+LD16 @mname ; A/Y = address of module name
|
||||||
jsr RunAttractModule
|
jsr RunAttractModule
|
||||||
lda KBD
|
lda KBD
|
||||||
|
Loading…
x
Reference in New Issue
Block a user