mirror of
https://github.com/a2-4am/4cade.git
synced 2025-01-13 21:30:38 +00:00
split MINIATTRACT.IDX into two because we have too many games
This commit is contained in:
parent
4ecb3e8605
commit
f9d99949c9
6
Makefile
6
Makefile
@ -123,7 +123,8 @@ index: preconditions md asmfx asmprelaunch compress
|
||||
[ -f build/index ] || $(PARALLEL) '[ $$(echo "{/}" | cut -c-3) = "ACT" ] && bin/buildslideshow.sh -d build/GAMES.CONF < "{}" > "build/SS/{/}" || bin/buildslideshow.sh build/GAMES.CONF < "{}" > "build/SS/{/}"' ::: res/SS/*
|
||||
[ -f build/index ] || ((for f in build/SS/*; do echo "$$(basename $$f)"; done) | bin/buildindexedfile.sh -p -a build/TOTAL.DATA build/SS > build/SLIDESHOW.IDX)
|
||||
[ -f build/index ] || $(PARALLEL) 'bin/buildokvs.sh < "{}" > "build/ATTRACT/{/}"' ::: res/ATTRACT/*
|
||||
[ -f build/index ] || ((for f in build/ATTRACT/*; do echo "$$(basename $$f)"; done) | bin/buildindexedfile.sh -p -a build/TOTAL.DATA build/ATTRACT > build/MINIATTRACT.IDX)
|
||||
[ -f build/index ] || ((for f in build/ATTRACT/[ABCDEFGHIJKLM]*; do echo "$$(basename $$f)"; done) | bin/buildindexedfile.sh -p -a build/TOTAL.DATA build/ATTRACT > build/MINIATTRACT0.IDX)
|
||||
[ -f build/index ] || ((for f in build/ATTRACT/[NOPQRSTUVWXYZ]*; do echo "$$(basename $$f)"; done) | bin/buildindexedfile.sh -p -a build/TOTAL.DATA build/ATTRACT > build/MINIATTRACT1.IDX)
|
||||
#
|
||||
# precompute indexed files for graphic effects
|
||||
# note: these can be padded because they're loaded into $6000 at a time when $6000..$BEFF is clobber-able
|
||||
@ -182,7 +183,8 @@ index: preconditions md asmfx asmprelaunch compress
|
||||
[ -f build/index ] || bin/addfile.sh build/SFX.IDX build/TOTAL.DATA > src/index/sfx.idx.a
|
||||
[ -f build/index ] || bin/addfile.sh build/GAMEHELP.IDX build/TOTAL.DATA > src/index/gamehelp.idx.a
|
||||
[ -f build/index ] || bin/addfile.sh build/SLIDESHOW.IDX build/TOTAL.DATA > src/index/slideshow.idx.a
|
||||
[ -f build/index ] || bin/addfile.sh build/MINIATTRACT.IDX build/TOTAL.DATA > src/index/miniattract.idx.a
|
||||
[ -f build/index ] || bin/addfile.sh build/MINIATTRACT0.IDX build/TOTAL.DATA > src/index/miniattract0.idx.a
|
||||
[ -f build/index ] || bin/addfile.sh build/MINIATTRACT1.IDX build/TOTAL.DATA > src/index/miniattract1.idx.a
|
||||
[ -f build/index ] || bin/addfile.sh build/TITLE.IDX build/TOTAL.DATA > src/index/title.idx.a
|
||||
[ -f build/index ] || bin/addfile.sh build/DTITLE.IDX build/TOTAL.DATA > src/index/dtitle.idx.a
|
||||
[ -f build/index ] || bin/addfile.sh build/HGR0.IDX build/TOTAL.DATA > src/index/hgr0.idx.a
|
||||
|
@ -204,7 +204,7 @@ PRELAUNCH_STANDARD_SIZE = 61 ; LoadStandardPrelaunch, eventually to be d
|
||||
iCurBlockLo = $D601 ; constant
|
||||
iCurBlockHi = $D603 ; constant
|
||||
launchpatch = $D853 ; glue.launch.a
|
||||
iAddToPath = $FEBF ; Roger Rabbit (via prelaunch), avoid, use Infiltrator 2 style instead
|
||||
iAddToPath = $FEB5 ; Roger Rabbit (via prelaunch), avoid, use Infiltrator 2 style instead
|
||||
; also Columns (via file in disk image)
|
||||
itraverse = $DB42 ; Roger Rabbit, avoid, use Infiltrator 2 style instead
|
||||
; also Columns (via file in disk image)
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11400560
|
||||
!be24 11400564
|
||||
!le16 4515
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11405075
|
||||
!be24 11405079
|
||||
!le16 410
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11405829
|
||||
!be24 11405833
|
||||
!le16 448
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11406277
|
||||
!be24 11406281
|
||||
!le16 303
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11405561
|
||||
!be24 11405565
|
||||
!le16 67
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11400501
|
||||
!be24 11400505
|
||||
!le16 59
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11399136
|
||||
!be24 11399140
|
||||
!le16 1284
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11384797
|
||||
!be24 11384801
|
||||
!le16 521
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11405485
|
||||
!be24 11405489
|
||||
!le16 76
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11400420
|
||||
!be24 11400424
|
||||
!le16 81
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11405628
|
||||
!be24 11405632
|
||||
!le16 201
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11385318
|
||||
!be24 11385322
|
||||
!le16 4511
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11389829
|
||||
!be24 11389833
|
||||
!le16 1575
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11391404
|
||||
!be24 11391408
|
||||
!le16 1053
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11392457
|
||||
!be24 11392461
|
||||
!le16 3237
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11395694
|
||||
!be24 11395698
|
||||
!le16 2877
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11398571
|
||||
!be24 11398575
|
||||
!le16 460
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11399031
|
||||
!be24 11399035
|
||||
!le16 105
|
||||
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11406580
|
||||
!be24 11406584
|
||||
!le16 2370
|
||||
|
@ -1,8 +1,8 @@
|
||||
;
|
||||
; Index record for build/MINIATTRACT.IDX
|
||||
; Index record for build/MINIATTRACT0.IDX
|
||||
;
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11372402
|
||||
!le16 6417
|
||||
!le16 3626
|
8
src/index/miniattract1.idx.a
Normal file
8
src/index/miniattract1.idx.a
Normal file
@ -0,0 +1,8 @@
|
||||
;
|
||||
; Index record for build/MINIATTRACT1.IDX
|
||||
;
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11376028
|
||||
!le16 2795
|
@ -4,5 +4,5 @@
|
||||
; This file is automatically generated
|
||||
;
|
||||
!byte 0
|
||||
!be24 11378819
|
||||
!be24 11378823
|
||||
!le16 5978
|
||||
|
@ -69,8 +69,16 @@ kPrelaunchIndexRecord
|
||||
kAttractModeIndexRecord
|
||||
!source "src/index/attract.idx.a"
|
||||
|
||||
kMiniAttractIndexRecord
|
||||
!source "src/index/miniattract.idx.a"
|
||||
kMiniAttractIndexLo
|
||||
!byte <kMiniAttractIndexRecord0
|
||||
!byte <kMiniAttractIndexRecord1
|
||||
kMiniAttractIndexHi
|
||||
!byte >kMiniAttractIndexRecord0
|
||||
!byte >kMiniAttractIndexRecord1
|
||||
kMiniAttractIndexRecord0
|
||||
!source "src/index/miniattract0.idx.a"
|
||||
kMiniAttractIndexRecord1
|
||||
!source "src/index/miniattract1.idx.a"
|
||||
|
||||
kAttractModeSlideshowIndexRecord
|
||||
!source "src/index/slideshow.idx.a"
|
||||
|
@ -68,13 +68,32 @@ MegaAttractMode
|
||||
;------------------------------------------------------------------------------
|
||||
MiniAttractMode
|
||||
jsr GetGameToLaunch
|
||||
+ST16 +
|
||||
+ST16 @GameToLaunch
|
||||
|
||||
+ST16 PTR
|
||||
ldy #1
|
||||
lda (PTR), y
|
||||
sec
|
||||
sbc #$41 ; A in [0..25]
|
||||
lsr ; A in [0..15]
|
||||
lsr ; A in [0..7]
|
||||
lsr ; A in [0..3]
|
||||
lsr ; A in [0..1]
|
||||
tax
|
||||
lda kMiniAttractIndexLo, x
|
||||
sta @MiniAttractIndexRecord
|
||||
lda kMiniAttractIndexHi, x
|
||||
sta @MiniAttractIndexRecord+1
|
||||
|
||||
jsr LoadIndexedFile
|
||||
- !word $0800
|
||||
!word kMiniAttractIndexRecord
|
||||
@MiniAttractIndexRecord
|
||||
!word $FDFD ; SMC
|
||||
|
||||
jsr okvs_find
|
||||
!word -
|
||||
+ !word $FDFD ; SMC
|
||||
@GameToLaunch
|
||||
!word $FDFD ; SMC
|
||||
jsr okvs_next_field
|
||||
jsr SwitchToBank2
|
||||
sty OKVS_CACHE
|
||||
|
Loading…
x
Reference in New Issue
Block a user