pad PREFS.CONF to 512 bytes because reasons

This commit is contained in:
4am 2019-01-04 12:23:27 -05:00
parent 27f2a75b84
commit 4ca9500301
5 changed files with 12 additions and 10 deletions

View File

@ -71,6 +71,7 @@ dsk: md asm
$(CADIUS) ADDFILE build/"$(DISK)" "/${VOLUME}/" "build/LAUNCHER.SYSTEM" >>build/log
# cp res/prefs-sample.conf build/PREFS.CONF >>build/log
cp res/prefs.conf build/PREFS.CONF >>build/log
bin/padto 512 build/PREFS.CONF
$(CADIUS) ADDFILE build/"$(DISK)" "/${VOLUME}/" "res/COVER" >>build/log
$(CADIUS) ADDFILE build/"$(DISK)" "/${VOLUME}/" "build/PREFS.CONF" >>build/log
$(CADIUS) ADDFILE build/"$(DISK)" "/${VOLUME}/" "res/GAMES.CONF" >>build/log

7
bin/padto Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
totalsize=$1
outfile=$2
filesize=`stat -f "%z" "$outfile"`
padsize=$((512-$filesize))
dd if=/dev/zero bs=1 count=$padsize >> "$outfile"

View File

@ -1 +1 @@
# # Mega-Attract-Mode configuration file # # Mega-Attract-Mode is split into modules. Each module can be a # short slideshow or a self-running demo (like a game's built-in # 'attract mode'). Modules are run in the order listed here, one # after the next, until interrupted by user input. The last-run # module is tracked in the global prefs file. # # Format: # key=value # # |key| must be unique within this file # # |value| must be one of # 0 for self-running demo (|key| is an executable binary file in /demo/) # 1 for title slideshow (|key| is a file containing a list of HGR graphics in /hgr/) # 2 for action slideshow (|key| is a file containing a list of HGR graphics in /action/) # 3 for DHGR title slideshow (|key| is a file containing a list of DHGR graphics in /dhgr/) # # Blank lines and lines beginning with '#' are ignored (like this one!) # A line beginning with '[' terminates the parsing # BURGERTIME=2 PRINCEUNP=2 CHAMP.LODERUN=2 LODE.RUNNER=2 POP01=2 POP03=2 POP05=2 POP08=2 POP11=2 BURGERTIME=2 CLODERUNNER011=2 BURGERTIME=2 PRINCEUNP=2 BURGERTIME=2 CHAMP.LODERUN=2 BURGERTIME=2 LODE.RUNNER=2 BURGERTIME=2 POP01=2 BURGERTIME=2 POP03=2 BURGERTIME=2 POP05=2 BURGERTIME=2 POP08=2 BURGERTIME=2 POP11=2 LODERUNNER051=2 PRINCEUNP=2 BURGERTIME=2 PRINCEUNP=2 PRINCEUNP=2 PRINCEUNP=2 CHAMP.LODERUN=2 PRINCEUNP=2 LODE.RUNNER=2 PRINCEUNP=2 POP01=2 LODERUNNER111=2 PRINCEUNP=2 POP05=2 PRINCEUNP=2 POP08=2 PRINCEUNP=2 POP11=2 ACTIONAB.CONF=2 ACTIONCD.CONF=2 ACTIONEFG.CONF=2 ACTIONHIJK.CONF=2 CHAMP.LODERUN=2 LODE.RUNNER=2 ACTIONPQR.CONF=2 ACTIONS.CONF=2 ACTIONT.CONF=2 CHAMP.LODERUN=2 POP08=2 CHAMP.LODERUN=2 POP11=2 LODE.RUNNER=2 LODE.RUNNER=2 BURGERTIME=2 LODE.RUNNER=2 PRINCEUNP=2 LODE.RUNNER=2 CHAMP.LODERUN=2 BRODERBUND.CONF=1 T.CONF=1 ATARI.CONF=1 LODE.RUNNER=2 POP05=2 PQR.CONF=1 LODE.RUNNER=2 POP11=2 POP01=2 POP01=2 BURGERTIME=2 POP01=2 PRINCEUNP=2 POP01=2 CHAMP.LODERUN=2 POP01=2 LODE.RUNNER=2 POP01=2 POP01=2 HIJKL.CONF=1 POP01=2 POP05=2 EA.CONF=1 POP01=2 POP11=2 POP03=2 POP03=2 BURGERTIME=2 EPYX.CONF=1 POP03=2 CHAMP.LODERUN=2 POP03=2 LODE.RUNNER=2 POP03=2 POP01=2 MATTEL.CONF=1 SUBLOGIC.CONF=1 TAITO.CONF=1 POP03=2 POP11=2 POP05=2 POP05=2 BURGERTIME=2 STELLAR.7=0 POP05=2 CHAMP.LODERUN=2 POP05=2 LODE.RUNNER=2 POP05=2 POP01=2 CEILING.ZERO=0 ORILEYS.MINE=0 FORMULA.1=0 FIREBIRD=0 #BUZZARD.BAIT=0 POP08=2 BURGERTIME=2 HIGH.RISE=0 POP08=2 CHAMP.LODERUN=2 POP08=2 LODE.RUNNER=2 POP08=2 POP01=2 LADY.TUT=0 POP08=2 POP05=2 FLIP.OUT=0 POP08=2 POP11=2 POP11=2 POP11=2 BURGERTIME=2 CIDER.SPIDER=0 POP11=2 CHAMP.LODERUN=2 MR.COOL=0 CHOPLIFTER=0 POP11=2 POP03=2 POP11=2 POP05=2 POP11=2 POP08=2 KARATEKA=0 BURGERTIME=2 LOST.TOMB=0 CLODERUNNER001=2 PRINCEUNP=2 CLODERUNNER001=2 CHAMP.LODERUN=2 CLODERUNNER001=2 LODE.RUNNER=2 BURGERTIME=2 POP01=2 CLODERUNNER001=2 POP03=2 BURGERTIME=2 POP05=2 BURGERTIME=2 POP08=2 BURGERTIME=2 POP11=2 CLODERUNNER011=2 JUNGLE.HUNT=0 CLODERUNNER011=2 PRINCEUNP=2 BURGERTIME=2 BURGERTIME=2 CHAMP.LODERUN=2 BURGERTIME=2 CLODERUNNER041=2 BURGERTIME=2 BURGERTIME=2 POP01=2 BURGERTIME=2 LODERUNNER011=2 CLODERUNNER011=2 POP05=2 BURGERTIME=2 BURGERTIME=2 POP08=2 BURGERTIME=2 BURGERTIME=2 POP11=2 BURGERTIME=2 LODERUNNER051=2 BURGERTIME=2 PRINCEUNP=2 BURGERTIME=2 BURGERTIME=2 LODERUNNER071=2 CLODERUNNER021=2 CHAMP.LODERUN=2 SNEAKERS=0 WAVY.NAVY=0 [eof]
# # Mega-Attract-Mode configuration file # # Mega-Attract-Mode is split into modules. Each module can be a # short slideshow or a self-running demo (like a game's built-in # 'attract mode'). Modules are run in the order listed here, one # after the next, until interrupted by user input. The last-run # module is tracked in the global prefs file. # # Format: # key=value # # |key| must be unique within this file # # |value| must be one of # 0 for self-running demo (|key| is an executable binary file in /demo/) # 1 for title slideshow (|key| is a file containing a list of HGR graphics in /hgr/) # 2 for action slideshow (|key| is a file containing a list of HGR graphics in /action/) # 3 for DHGR title slideshow (|key| is a file containing a list of DHGR graphics in /dhgr/) # # Blank lines and lines beginning with '#' are ignored (like this one!) # A line beginning with '[' terminates the parsing # FAVORITES.CONF=1 OTHER.CONF=1 ROBOTRON=0 BURGERTIME=2 LODERUNNER111=2 CLODERUNNER021=2 PRINCEUNP=2 POP01=2 LODE.RUNNER=2 POP08=2 POP01=2 POP03=2 AQUATRON=0 POP08=2 BURGERTIME=2 STARGATE=0 BURGERTIME=2 LODERUNNER121=2 BOUNCING.KMNGAS=0 POP03=2 PRINCEUNP=2 BURGERTIME=2 POP11=2 CHAMP.LODERUN=2 POP01=2 CHOPLIFTER=0 IDSI.CONF=1 NIBBLER=0 SEGA.CONF=1 POP05=2 BURGERTIME=2 POP01=2 BURGERTIME=2 POP01=2 POP01=2 BURGERTIME=2 POP03=2 ACTIONHIJK.CONF=2 BURGERTIME=2 PRINCEUNP=2 MATTEL.CONF=1 LODE.RUNNER=2 POP05=2 BURGERTIME=2 LODERUNNER081=2 POP05=2 CLODERUNNER001=2 CD.CONF=1 POP08=2 BURGERTIME=2 LODERUNNER051=2 MR.COOL=0 POP11=2 BURGERTIME=2 POP01=2 PRINCEUNP=2 POP11=2 CHAMP.LODERUN=2 POP08=2 PRINCEUNP=2 POP01=2 BURGERTIME=2 PRINCEUNP=2 POP08=2 DHGR.CONF=3 THUNDERBOMBS=0 CLODERUNNER011=2 POP05=2 BURGERTIME=2 PRINCEUNP=2 POP11=2 CLODERUNNER011=2 PRINCEUNP=2 PIEMAN=0 POP11=2 POP11=2 BURGERTIME=2 ACTIONAB.CONF=2 BURGERTIME=2 ACTIONCD.CONF=2 LODE.RUNNER=2 BURGERTIME=2 ACTIONS.CONF=2 POP08=2 PRINCEUNP=2 POP11=2 POP03=2 BURGERTIME=2 CHAMP.LODERUN=2 BURGERTIME=2 CHAMP.LODERUN=2 PRINCEUNP=2 LODE.RUNNER=2 POP11=2 LODERUNNER051=2 T.CONF=1 POP01=2 POP05=2 LODE.RUNNER=0 #LODERUNNER031=2 CLODERUNNER031=2 LODE.RUNNER=2 POP08=2 BURGERTIME=2 PRINCEUNP=2 LODE.RUNNER=2 BURGERTIME=2 POP01=2 CHAMP.LODERUN=2 BURGERTIME=2 LODE.RUNNER=2 PRINCEUNP=2 POP03=2 POP01=2 ACTIONMNO.CONF=2 POP05=2 LODE.RUNNER=2 CLODERUNNER001=2 POP01=2 CHAMP.LODERUN=2 BURGERTIME=2 CHAMP.LODERUN=2 POP01=2 LODE.RUNNER=2 LODE.RUNNER=2 POP01=2 POP11=2 POP01=2 EA.CONF=1 CLODERUNNER011=2 BURGERTIME=2 SAMMY.LIGHTFOOT=0 CHAMP.LODERUN=2 POP05=2 POP11=2 POP05=2 CIDER.SPIDER=0 FORMULA.1=0 GUMBALL=0 FIREBIRD=0 BALLY.CONF=1 BURGERTIME=2 POP03=2 ATARI.CONF=1 POP03=2 POP08=2 BURGERTIME=2 LODE.RUNNER=2 CLODERUNNER011=2 POP08=2 POP01=2 LODE.RUNNER=2 GOONIES=0 POP05=2 POP03=2 #LODERUNNER011=2 POP11=2 CHAMP.LODERUN=2 POP08=2 POP11=2 BURGERTIME=2 BURGERTIME=2 CHAMP.LODERUN=2 POP03=2 POP05=2 POP08=2 POP08=2 BURGERTIME=2 ACTIONT.CONF=2 ORILEYS.MINE=0 CHAMP.LODERUN=2 PRINCEUNP=2 POP03=2 CHAMP.LODERUN=2 CLODERUNNER001=2 PRINCEUNP=2 BURGERTIME=2 #SPIDER.RAID=0 POP01=2 CHAMP.LODERUN=2 CLODERUNNER001=2 BURGERTIME=2 BURGERTIME=2 BURGERTIME=2 POP11=2 CLODERUNNER011=2 POP01=2 SERPENTINE=0 LADY.TUT=0 CLODERUNNER011=2 POP03=2 BURGERTIME=2 CHAMP.LODERUN=2 POP11=2 BURGERTIME=2 CHAMP.LODERUN=2 POP03=2 BURGERTIME=2 BURGERTIME=2 DHGR.CONF=3 CLODERUNNER011=2 POP05=2 PRINCEUNP=2 BURGERTIME=2 POP08=2 BURGERTIME=2 LODE.RUNNER=2 BURGERTIME=2 BURGERTIME=2 LODE.RUNNER=2 PRINCEUNP=2 BURGERTIME=2 LODE.RUNNER=2 CHAMP.LODERUN=2 =0 [eof]

View File

@ -1 +1 @@
# # transition effects for HGR slideshows # # Each Mega-Attract Module that is an HGR slideshow (see attract.conf) # will use a single transition effect for the length of the module. # Transition effects are loaded in the order listed in this file. Each line # of this file is a filename (not including comments, like this one). The # name of the next transition effect is stored in the global prefs, so this # file should not contain duplicates. # # Transition effects are binary files loaded at $6000 and called with # hi-res page 1 showing and the next HGR graphic already loaded at $4000. # A transition effect has full use of main memory, including zero page and # text page if needed. LC RAM banks 1 and 2 are reserved for the launcher. # # Important: LC RAM bank 1 will be read/write on entry and must be read/write # on exit. If you need ROM routines, you are responsible for switching to ROM # then switching back to RAM bank 1 (read/write) before returning. # DIAGONAL STAGGERWHITE.UD STAR RADIAL RIPPLE FIZZLE CRYSTAL SUNRISE SUNSET CORNER.CIRCLE RIPPLE2 RADIAL2 RADIAL3 RADIAL4 RADIAL5 FOURSPIRAL IRIS SPLIT.UD.INTRO CHECKERBOARD HALF.FIZZLE BAR.DISSOLVE STAGGERWHITE.LR DIAMOND ONESQUARE TWOPASS.LR HALF.MOSAIC STAGGER.LR FOURSQUARE STAGGER.UD INTERLOCK.LR BLOCK.MOSAIC INTERLOCK.UD BLOCK.FIZZLE SPIRAL [eof]
# # transition effects for HGR slideshows # # Each Mega-Attract Module that is an HGR slideshow (see attract.conf) # will use a single transition effect for the length of the module. # Transition effects are loaded in the order listed in this file. Each line # of this file is a filename (not including comments, like this one). The # name of the next transition effect is stored in the global prefs, so this # file should not contain duplicates. # # Transition effects are binary files loaded at $6000 and called with # hi-res page 1 showing and the next HGR graphic already loaded at $4000. # A transition effect has full use of main memory, including zero page and # text page if needed. LC RAM banks 1 and 2 are reserved for the launcher. # # Important: LC RAM bank 1 will be read/write on entry and must be read/write # on exit. If you need ROM routines, you are responsible for switching to ROM # then switching back to RAM bank 1 (read/write) before returning. # RIPPLE DIAGONAL STAGGERWHITE.UD STAR RADIAL FIZZLE CRYSTAL SUNRISE SUNSET CORNER.CIRCLE RIPPLE2 RADIAL2 RADIAL3 RADIAL4 RADIAL5 FOURSPIRAL IRIS SPLIT.UD.INTRO CHECKERBOARD HALF.FIZZLE BAR.DISSOLVE STAGGERWHITE.LR DIAMOND ONESQUARE TWOPASS.LR HALF.MOSAIC STAGGER.LR FOURSQUARE STAGGER.UD INTERLOCK.LR BLOCK.MOSAIC INTERLOCK.UD BLOCK.FIZZLE SPIRAL [eof]

View File

@ -17,7 +17,7 @@
; - kNextDFX
;
kGlobalPrefsBuffer = $0800
kGlobalPrefsBuffer = $8000
kGlobalPrefsFilename
!byte 10
@ -45,8 +45,7 @@ kNextDFX
; $00/$01/$FE/$FF clobbered
;------------------------------------------------------------------------------
SaveGlobalPreferences
lda #$00
ldy #$08
+LDADDR kGlobalPrefsBuffer
+STAY $FE
+LDADDR @kFluff1
@ -72,11 +71,6 @@ SaveGlobalPreferences
+LDADDR @kEOF
jsr @addString
bit $c010
- lda $c000
bpl -
bit $c010
jsr SaveSmallFile
!word kGlobalPrefsFilename
!word kGlobalPrefsBuffer