mirror of
https://github.com/a2-4am/4cade.git
synced 2026-04-19 09:25:27 +00:00
don't copy next mega-attract filename if there isn't one
closes https://github.com/a2-4am/4cade/issues/765
This commit is contained in:
+7
-3
@@ -47,7 +47,7 @@ ReadyToPaint
|
||||
; unless key has been pressed
|
||||
php
|
||||
bit KBD
|
||||
bmi +
|
||||
bmi @keyPressed
|
||||
pha
|
||||
tya
|
||||
pha
|
||||
@@ -55,7 +55,9 @@ ReadyToPaint
|
||||
pha
|
||||
lda PTR+1 ; ZP
|
||||
pha
|
||||
+LD16 gNextMegaAttractGame
|
||||
+LD16 gNextMegaAttractGame ; LC1, which is R/W
|
||||
cpy #$FF ; in mini-attract mode this will be -1
|
||||
beq @noGame
|
||||
+ST16 PTR ; ZP
|
||||
ldy #0
|
||||
lda (PTR), y ; ZP
|
||||
@@ -64,6 +66,7 @@ ReadyToPaint
|
||||
sta gLastMegaAttractFilename, y ; LC1, which is R/W
|
||||
dey
|
||||
bpl -
|
||||
@noGame
|
||||
pla
|
||||
sta PTR+1 ; ZP
|
||||
pla
|
||||
@@ -73,7 +76,8 @@ ReadyToPaint
|
||||
pla
|
||||
plp
|
||||
rts
|
||||
+ plp
|
||||
@keyPressed
|
||||
plp
|
||||
sta READMAINMEM
|
||||
sta WRITEMAINMEM
|
||||
pla
|
||||
|
||||
Reference in New Issue
Block a user