mirror of
https://github.com/a2-4am/4cade.git
synced 2024-09-29 09:55:29 +00:00
further simplify PlayGame code
This commit is contained in:
parent
8e19fc9c5b
commit
b365b5d880
@ -75,7 +75,6 @@ gGameToLaunch=*+1
|
|||||||
jsr okvs_nth
|
jsr okvs_nth
|
||||||
; A/Y = address of game filename
|
; A/Y = address of game filename
|
||||||
+STAY SAVE
|
+STAY SAVE
|
||||||
+STAY +
|
|
||||||
+STAY @pfile
|
+STAY @pfile
|
||||||
|
|
||||||
jsr Home ; clear screen (clobbers $106, must do now before loading prelaunch code)
|
jsr Home ; clear screen (clobbers $106, must do now before loading prelaunch code)
|
||||||
@ -94,10 +93,7 @@ gGameToLaunch=*+1
|
|||||||
bit gCheatsEnabled ; are cheats enabled?
|
bit gCheatsEnabled ; are cheats enabled?
|
||||||
bpl @noCheats
|
bpl @noCheats
|
||||||
|
|
||||||
jsr okvs_get ; need to get game index from filename to determine
|
ldx gGameToLaunch
|
||||||
!word gGamesListStore ; whether there are any cheats for this game
|
|
||||||
+ !word $FDFD ; SMC
|
|
||||||
; X = game index
|
|
||||||
ldy gCheatsAvailable,x ; are there any cheats for this game?
|
ldy gCheatsAvailable,x ; are there any cheats for this game?
|
||||||
beq @noCheats
|
beq @noCheats
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user