mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-23 16:29:34 +00:00
.
This commit is contained in:
parent
28a0a83980
commit
436522857a
@ -4,8 +4,8 @@
|
||||
; Functions to launch games and self-running demos
|
||||
;
|
||||
; Public functions
|
||||
; - GetGameDisplayName
|
||||
; - GetGameDisplayNameInActionSlideshow
|
||||
; - GetGameInfo
|
||||
; - GetGameInfoInActionSlideshow
|
||||
; - PlayGame
|
||||
; - Launch
|
||||
;
|
||||
@ -13,7 +13,7 @@
|
||||
; - gGameToLaunch - 0-based index into gGamesListStore
|
||||
;
|
||||
|
||||
GetGameDisplayName
|
||||
GetGameInfo
|
||||
; in: A/Y points to game filename
|
||||
; out: C clear if game exists in gGamesListStore, and
|
||||
; A/Y points to game display name (but see hack notes below)
|
||||
@ -26,7 +26,7 @@ GetGameDisplayName
|
||||
; joystick)
|
||||
ldx #$60
|
||||
+HIDE_NEXT_2_BYTES
|
||||
GetGameDisplayNameInActionSlideshow
|
||||
GetGameInfoInActionSlideshow
|
||||
ldx #$EA
|
||||
stx @maybeExit
|
||||
+STAY @key
|
||||
|
@ -100,7 +100,7 @@ DHGRTitleCallback
|
||||
|
||||
+STAY +
|
||||
|
||||
jsr GetGameDisplayName
|
||||
jsr GetGameInfo
|
||||
; if game is not found (C will be set here), it means it can't be played on
|
||||
; this machine due to memory or joystick requirements, so we don't display
|
||||
; it in slideshows
|
||||
@ -133,7 +133,7 @@ DHGRActionCallback
|
||||
|
||||
+STAY +
|
||||
|
||||
jsr GetGameDisplayNameInActionSlideshow
|
||||
jsr GetGameInfoInActionSlideshow
|
||||
; if game name is not found (C will be set here), it means the game
|
||||
; can't be played due to memory or joystick requirements, so we hide
|
||||
; it from slideshows
|
||||
|
@ -85,7 +85,7 @@ BlankGR
|
||||
|
||||
+STAY +
|
||||
|
||||
jsr GetGameDisplayNameInActionSlideshow
|
||||
jsr GetGameInfoInActionSlideshow
|
||||
; if game name is not found (C will be set here), it means the game
|
||||
; can't be played due to memory or joystick requirements, so we hide
|
||||
; it from slideshows
|
||||
|
@ -88,7 +88,7 @@ HGRTitleCallback
|
||||
|
||||
+STAY +
|
||||
|
||||
jsr GetGameDisplayName
|
||||
jsr GetGameInfo
|
||||
; if game is not found (C will be set here), it means it can't be played on
|
||||
; this machine due to memory or joystick requirements, so we don't display
|
||||
; it in slideshows
|
||||
@ -121,7 +121,7 @@ HGRActionCallback
|
||||
|
||||
+STAY +
|
||||
|
||||
jsr GetGameDisplayNameInActionSlideshow
|
||||
jsr GetGameInfoInActionSlideshow
|
||||
; if game name is not found (C will be set here), it means the game
|
||||
; can't be played due to memory or joystick requirements, so we hide
|
||||
; it from slideshows
|
||||
|
@ -143,7 +143,7 @@ RunAttractModule
|
||||
; language card or auxiliary memory.
|
||||
|
||||
+LDAY @key
|
||||
jsr GetGameDisplayName
|
||||
jsr GetGameInfo
|
||||
bcc + ; if game doesn't exist, skip the demo
|
||||
rts
|
||||
+
|
||||
|
@ -67,7 +67,7 @@ SHRArtworkCallback
|
||||
+
|
||||
+STAY @sfname
|
||||
|
||||
jsr GetGameDisplayName
|
||||
jsr GetGameInfo
|
||||
; if game is not found (C will be set here), it means it can't be played on
|
||||
; this machine due to memory or joystick requirements, so we don't display
|
||||
; it in slideshows
|
||||
|
Loading…
Reference in New Issue
Block a user