mirror of https://github.com/a2-4am/4cade.git
browse previous with no game selected should select last game instead of game 65534
This commit is contained in:
parent
472c60c02c
commit
9d46aaa797
|
@ -68,8 +68,12 @@ OnBrowseSearch
|
|||
jmp SearchMode
|
||||
|
||||
OnBrowsePrevious
|
||||
+LDX16 gGameToLaunch
|
||||
+CPX16_0_NE @notFirstGame
|
||||
jsr AnyGameSelected
|
||||
; A/Y = gGameToLaunch
|
||||
bcs @goToLastGame ; if no game selected, select last game
|
||||
tax ; X/Y = gGameToLaunch
|
||||
+CPX16_0_NE @notFirstGame ; if first game selected, select last game
|
||||
@goToLastGame
|
||||
+LDX16 GameCount
|
||||
@notFirstGame
|
||||
+DEX16
|
||||
|
|
Loading…
Reference in New Issue