Compare commits

...

141 Commits
v5.1 ... main

Author SHA1 Message Date
4am
2bb6eb557a factor out more FX routines 2024-05-31 21:01:21 -04:00
4am
b3a1f010d6 move self-contained shared FX routines to new FXCODE index and load them as needed 2024-05-31 02:22:38 -04:00
Peter Ferrie
4fd63e6154 fix Time Pilot reset vector 2024-05-29 21:12:00 -07:00
Peter Ferrie
04e839d4d7 fix Berzap RNG overflow 2024-05-29 18:17:24 -07:00
4am
3a5d2d3830 factor out more FX routines 2024-05-29 18:52:01 -04:00
4am
965d7bed5f factor out more FX routines 2024-05-29 14:41:36 -04:00
4am
70f62c2e66 factor out more FX routines 2024-05-29 12:24:29 -04:00
Peter Ferrie
efdbb8218e fix bad instruction in Lost Tomb 2024-05-28 21:46:49 -07:00
4am
457ccfbbe8 factor out more FX routines 2024-05-28 22:00:35 -04:00
Peter Ferrie
c9257aa5ed another fix for Axis Assassin demo 2024-05-28 18:30:59 -07:00
4am
eb07d7798c use some descriptive constants 2024-05-28 21:17:10 -04:00
Peter Ferrie
7922873dbf fix Axis Assassin demo 2024-05-28 18:11:52 -07:00
Peter Ferrie
24398b5d50 don't pad FX 2024-05-28 18:11:42 -07:00
4am
c8f924dc6e update some comments 2024-05-28 21:03:09 -04:00
4am
7ea8a0624d factor out more FX routines 2024-05-28 20:59:33 -04:00
4am
d75c1cc039 factor out more FX routines, and fix some RAM bank confusion now that launcher code extends below E000 2024-05-28 18:57:51 -04:00
4am
90a6f55ddf factor out more FX routines 2024-05-28 09:42:19 -04:00
4am
af538414ff fix page-crossing and add assembler check 2024-05-28 09:34:29 -04:00
4am
6906bf15bd remove obsolete comment 2024-05-27 23:17:29 -04:00
4am
88e0faf522 fix SHR effects that need to load large data files that are now stored in TOTAL.DATA instead of separate files 2024-05-27 23:09:02 -04:00
4am
c7a2c1a921 factor out more FX routines 2024-05-27 21:39:51 -04:00
4am
99dcc896d1 factor out more FX routines 2024-05-27 13:32:07 -04:00
4am
711de29099 fix several bugs in dithermasks initialization 2024-05-27 13:19:44 -04:00
Peter Ferrie
bbe441a983 sync 2024-05-26 22:52:10 -07:00
Peter Ferrie
f151e50247 fix Galaxian demo sound 2024-05-26 13:21:05 -07:00
4am
c7db1050cc factor out some common FX routines, also move font data to D100/LC1 2024-05-26 13:41:21 -04:00
4am
1c15f9daa1 factor out BuildHGRTables, standardize some table locations across FX 2024-05-26 00:40:54 -04:00
4am
0301a7ff48 hard-code load address for all LOAD_FILE_AT callers 2024-05-25 23:41:36 -04:00
4am
fd4a0cd7ba reduce memory copy during launch 2024-05-25 20:51:48 -04:00
4am
5a99dbcc40 factor out common prelaunch code (saves 22KB) 2024-05-25 19:18:49 -04:00
4am
57f8a44d61 use new macro (no binary changes) 2024-05-25 17:59:16 -04:00
4am
c5e5162fda use new macro (no binary changes) 2024-05-25 17:49:51 -04:00
4am
ac0a7cf4d5 use new macro (no binary changes) 2024-05-25 17:34:49 -04:00
4am
b729ae17c2 use new macro (no binary changes) 2024-05-25 17:24:57 -04:00
4am
93ee4bee01 remove unnecessary duplicates of wait routine (saves 781 bytes) 2024-05-25 16:57:13 -04:00
4am
5dbcb0507c move large graphic effects data files to TOTAL.DATA 2024-05-25 13:07:22 -04:00
4am
98ef0d2249 add some missing file metadata 2024-05-25 00:41:50 -04:00
4am
de540fe930 add game help for Mr. Robot, which does not require a joystick 2024-05-25 00:35:27 -04:00
4am
b3d7d2e32c some game help formatting fixes 2024-05-24 22:20:22 -04:00
4am
980a956bc1 simplify some help files 2024-05-24 21:54:43 -04:00
4am
83c77096ac simplify some conf files 2024-05-24 16:24:55 -04:00
4am
2b8c4aadaa add game help for Defender 2024-05-24 15:31:14 -04:00
4am
df7c909090 add game help for Cyclotron 2024-05-24 15:17:31 -04:00
4am
7d4421ba49 Artesians does not require a joystick 2024-05-24 14:00:49 -04:00
4am
9f339195d7 update format comments which haven't been accurate in a long time 2024-05-24 13:53:30 -04:00
4am
e3fb3b3f6d add game help for Arcade Boot Camp 2024-05-24 13:44:59 -04:00
4am
0172bfdcad sync conf files 2024-05-23 22:05:07 -04:00
Peter Ferrie
82b69f4619 repack Night Falls 2024-05-23 18:24:11 -07:00
4am
efff92fee4 add game help for Wall Defence 2024-05-23 17:21:00 -04:00
4am
da9bc9c2ae add game help for Cracky, Guntus 2024-05-23 17:09:09 -04:00
4am
1ff0161e2e add game help for Ascend, Bootskell, Cacorm, Impetus, Lift 2024-05-23 16:59:04 -04:00
4am
e2a891ed9a add game help for Battlot, Cavit, Ruptus 2024-05-23 16:37:22 -04:00
4am
7ec692b881 add game help for Aerial, Mazy, Neuras 2024-05-22 19:02:28 -04:00
4am
f5c614b207 update changelog 2024-05-22 15:13:50 -04:00
4am
4e3adc2aa5 update changelog 2024-05-22 15:05:16 -04:00
4am
15bf7ae9aa rename to Night Falls 2024-05-22 15:03:22 -04:00
4am
46e094decd add box art for Pick 'n' Pile [thanks Alex L.] 2024-05-22 14:52:05 -04:00
4am
466062d3a1 add game help for Night Crawler, Night Stalker, Teritory 2024-05-21 11:06:53 -04:00
4am
98f4646da6 add gamehelp for Syzygy, Titan Cronus, Tweps, and Wargle 2024-05-20 21:50:42 -04:00
Peter Ferrie
f4484a3dc4 restore LC reset and IRQ vectors 2024-05-17 12:43:13 -07:00
4am
fcc6c1bd80 update Aeronaut name 2024-05-17 15:36:36 -04:00
Peter Ferrie
8c0c2cfe95 avoid Lethal Labyrinth system prompt 2024-05-17 12:03:49 -07:00
Peter Ferrie
42a7941e61 avoid floppy softswitch in The Last Gladiator 2024-05-17 11:48:55 -07:00
Peter Ferrie
43c1f99df8 avoid floppy softswitch in Spellwielder 2024-05-17 11:43:59 -07:00
Peter Ferrie
5fbd3a831f avoid floppy softswitch in Situation Critical 2024-05-17 11:38:58 -07:00
Peter Ferrie
e4b4e997aa avoid floppy softswitch in Roadblock 2024-05-17 11:30:44 -07:00
Peter Ferrie
49fafc4688 fix Pegasus II reset vector 2024-05-17 11:29:17 -07:00
Peter Ferrie
b4c2de8e4e fix Lethal Labyrinth reset vector 2024-05-17 10:43:48 -07:00
Peter Ferrie
ec5a83eb26 fix Infiltrator 2 for flat structure 2024-05-17 10:22:18 -07:00
Peter Ferrie
8ccd1fe044 fix Impossible Mission 2 reset vector 2024-05-17 09:48:51 -07:00
Peter Ferrie
665e7ffa67 avoid floppy softswitch in Galactic Attack 2024-05-17 09:35:32 -07:00
Peter Ferrie
13b5d876e8 avoid floppy softswitches in Axis Assassin and Ballblazer 2024-05-16 14:04:25 -07:00
Peter Ferrie
370e544d24 fix Agent U.S.A. reset vector 2024-05-16 12:42:25 -07:00
4am
c361472951 add game help for Threshold 2024-05-12 13:29:59 -04:00
4am
ada45c1fc2 add game help for Thunder Bombs 2024-05-12 12:53:04 -04:00
Peter Ferrie
c2de0a2ccc fix Run For The Money reset vector 2024-05-11 14:38:36 -07:00
Peter Ferrie
edd6192a22 fix Death Sword reset vector 2024-05-11 14:38:23 -07:00
Peter Ferrie
b8e7d480e6 fix Colorix reset vector 2024-05-11 14:38:06 -07:00
4am
7cc7fd357b simplify Makefile slightly 2024-05-11 10:55:14 -04:00
4am
a7efbea1f8 flatten subdirectories to shave some blocks 2024-05-11 10:36:50 -04:00
Peter Ferrie
6dd38440df avoid another collision 2024-05-10 21:41:19 -07:00
Peter Ferrie
674638fb7e avoid some additional collisions 2024-05-10 16:47:30 -07:00
Peter Ferrie
9066bb2145 avoid RR subdir name collision 2024-05-10 12:07:57 -07:00
Peter Ferrie
ada2f3b0b1 prepare for flattened structure 2024-05-10 11:07:46 -07:00
4am
535f3a8a4c add action screenshots for Panic Button 2024-05-09 14:02:33 -04:00
Peter Ferrie
9f3cce4731 add Panic Button to the collection 2024-05-09 08:14:19 -07:00
4am
e0d2172132 update changelog 2024-05-09 00:09:52 -04:00
4am
51b5f51666 add action screenshots for Aeronauts, rebalance attract mode 2024-05-09 00:08:33 -04:00
Peter Ferrie
4a7ebf3a6d repack Berzap and add Aeronauts 2024-05-08 15:09:21 -07:00
4am
1bba465e92 update changelog 2024-05-07 11:53:31 -04:00
4am
990cf25809 add screenshot for SnakeBYTE Remix 2024-05-06 13:07:01 -04:00
Peter Ferrie
a362597c09 fix WoF unintended keyboard control 2024-05-05 21:41:23 -07:00
Peter Ferrie
0c0050d6cf make HERO ROM4x compatible 2024-05-05 20:36:32 -07:00
Peter Ferrie
b6b193c4ae allow SnakeBYTE Remix to exit 2024-05-05 20:29:20 -07:00
4am
ead3094694 add action screenshot for Tron 2024-05-05 17:40:46 -04:00
Peter Ferrie
c7626b11d8 add SnakeBYTE Remix to the collection 2024-05-05 09:56:22 -07:00
4am
8872250ac7 add action screenshot for Colorix 2024-05-05 12:43:45 -04:00
Peter Ferrie
586c2fc227 fix Colorix initial environment 2024-05-04 21:45:04 -07:00
Peter Ferrie
a10337ef9b add Colorix and Tron to the collection 2024-05-04 20:39:50 -07:00
4am
dba357c27a add action screenshot for Run For The Money 2024-05-04 20:33:03 -04:00
Peter Ferrie
082e277e3d repack Death Sword to save some space 2024-05-04 14:53:08 -07:00
Peter Ferrie
8e657186e1 fix Run For The Money reset vector 2024-05-03 13:19:25 -07:00
Peter Ferrie
7a21398f75 add Run For The Money to the collection 2024-05-03 09:25:58 -07:00
4am
005f96d6af add action screenshots and game help for Mutant (Steve Waldo) 2024-05-02 21:30:43 -04:00
Peter Ferrie
65f090b53f add Mutant (Steve Waldo version) to the collection 2024-05-02 16:02:06 -07:00
Peter Ferrie
9e69cdca94 remove Pegasus copy-protection artifact 2024-04-29 20:19:04 -07:00
Peter Ferrie
128385ea62 fix The Space Ark boot 2024-04-29 20:08:32 -07:00
Peter Ferrie
f681fe1d32 fix Star Glider reset vector 2024-04-29 19:04:03 -07:00
Peter Ferrie
581099b175 update Rocky Horror reset vector 2024-04-29 18:39:38 -07:00
Peter Ferrie
8bb101a337 fix Rescue Raiders reset vector 2024-04-29 18:16:19 -07:00
Peter Ferrie
b138d030d5 remove Depth Charge initial pause 2024-04-29 18:09:01 -07:00
Peter Ferrie
13f3461621 fix Mazeblox launch 2024-04-29 17:17:34 -07:00
Peter Ferrie
f26e9f1763 fix Super Zaxxon reset 2024-04-28 21:11:39 -07:00
Peter Ferrie
7f0518fd46 fix Zaxxon reset 2024-04-28 21:02:44 -07:00
4am
f49ea558ab add action screenshots for Fido, trim some excessive action shots 2024-04-28 21:50:24 -04:00
Peter Ferrie
ccee4e55cf add Fido to the collection 2024-04-28 15:29:48 -07:00
4am
055cba6340 update changelog 2024-04-27 21:03:51 -04:00
4am
0845ea468a add action screenshots and game help for Pick 'n' Pile 2024-04-27 20:57:22 -04:00
4am
90c45e4e5e some sorting changes 2024-04-27 20:53:14 -04:00
Peter Ferrie
2c010c0851 add hidden levels (161+) 2024-04-27 13:21:30 -07:00
4am
a137612d08 add action screenshots and game help for Rocky Horror 2024-04-27 14:49:59 -04:00
Peter Ferrie
7085faebc8 add Pick'n'Pile to the collection 2024-04-26 22:20:29 -07:00
Peter Ferrie
d29e8554df shave some blocks 2024-04-26 17:04:28 -07:00
Peter Ferrie
4e186fd530 add Rocky Horror to the collection 2024-04-26 09:52:07 -07:00
4am
2fbdd2bb37 migrate Sudoku to 4sports 2024-04-23 23:50:38 -04:00
Peter Ferrie
dfc882b2fd add some cheats 2024-04-23 17:18:57 -07:00
Peter Ferrie
4a2c619929 add Sudoku to the collection 2024-04-23 13:23:39 -07:00
4am
535c4c841d some notes 2024-04-23 00:23:51 -04:00
4am
7acb717b11 some notes 2024-04-23 00:23:12 -04:00
4am
b5dffa65ab add Hopman 2024-04-22 22:18:47 -04:00
4am
bc38e605d9 update changelog 2024-04-22 21:58:35 -04:00
4am
43ab54a120 add Yewdow 2024-04-22 21:58:09 -04:00
4am
6637a5e51e add AntiAir 2024-04-22 21:33:43 -04:00
4am
124432f373 merge 2024-03-29 20:38:34 -04:00
4am
65c5d0697f updated box art [thanks Alex L.] 2024-03-29 20:36:25 -04:00
Peter Ferrie
7e5bb82d63 Apple Panic with optional joystick (press ctrl-j) 2024-03-14 21:42:54 -07:00
Peter Ferrie
48567554df Bandits: map shield to button 1 2024-03-14 13:47:17 -07:00
Peter Ferrie
8ec38d2c95 fix Spy vs Spy white end screen 2024-03-08 12:49:46 -08:00
Peter Ferrie
af2f83fccc add Angry Birds title screen 2024-02-27 20:54:47 -08:00
4am
270d81d749 factor out new games that moved almost immediately [thanks Andrew R.] 2024-02-24 15:59:41 -05:00
4am
409de6a218 add list of v1 games [thanks Andrew R.] 2024-02-23 13:59:32 -05:00
2316 changed files with 8611 additions and 8636 deletions

View File

@ -43,7 +43,6 @@ dsk: index asmproboot asmlauncher extract
# create _FileInformation.txt files for subdirectories
#
bin/buildfileinfo.sh res/ICONS "CA" "0000"
bin/buildfileinfo.sh build/FX "06" "6000"
cp src/prelaunch/_FileInformation.txt build/PRELAUNCH/
#
# add everything to the disk
@ -58,21 +57,33 @@ dsk: index asmproboot asmlauncher extract
for f in \
res/TITLE.ANIMATED \
res/ICONS \
build/FX \
build/PRELAUNCH; do \
build/PRELAUNCH \
build/X; do \
rm -f "$$f"/.DS_Store; \
$(CADIUS) ADDFOLDER build/"$(DISK)" "/$(VOLUME)/$$(basename $$f)" "$$f" -C >>build/log; \
done
$(CADIUS) CREATEFOLDER build/"$(DISK)" "/$(VOLUME)/X/" -C >>build/log
for f in build/X/*; do \
$(CADIUS) ADDFOLDER build/"$(DISK)" "/$(VOLUME)/X/$$(basename $$f)" "$$f" -C >>build/log; \
done
bin/changebootloader.sh build/"$(DISK)" build/proboothd
extract: preconditions md
gamesconf: preconditions md
#
# create a version of GAMES.CONF without comments or blank lines or anything after display titles
#
[ -f build/index ] || (awk '!/^$$|^#/' < res/GAMES.CONF | awk -F'/' '{ print $$1 }' > build/GAMES.CONF)
#
# create a list of all game filenames, without metadata or display names, sorted by game filename
#
[ -f build/index ] || (awk -F, '/,/ { print $$2 }' < build/GAMES.CONF | awk -F= '{ print $$1 }' | sort > build/GAMES.SORTED)
extract: preconditions md gamesconf
$(PARALLEL) '$(CADIUS) EXTRACTVOLUME {} build/X/ >>build/log' ::: res/dsk/*.po
rm -f build/X/**/.DS_Store build/X/**/PRODOS* build/X/**/LOADER.SYSTEM*
for f in $$(grep '^....1' res/GAMES.CONF | awk '!/^$$|^#/' | awk -F, '/,/ { print $$2 }' | awk -F= '{ print $$1 }'); do mv build/X/"$$(basename $$f)"/"$$(basename $$f)"* build/X.INDEXED/; rm -rf build/X/"$$(basename $$f)"; done
rm -f build/X/**/.DS_Store build/X/**/PRODOS* build/X/**/LOADER.SYSTEM* build/X/**/_FileInformation.txt
for f in $$(grep '^....1' build/GAMES.CONF | awk '!/^$$|^#/' | awk -F, '/,/ { print $$2 }' | awk -F= '{ print $$1 }'); do mv build/X/"$$(basename $$f)"/"$$(basename $$f)"* build/X.INDEXED/; rm -rf build/X/"$$(basename $$f)"; done
for d in build/X/*; do \
for f in "$$d"/*; do \
mv "$$f" build/X/"$$(basename $$f)"; \
done; \
rmdir "$$d"; \
done
(for f in build/X.INDEXED/*; do echo "$$(basename $$f)"; done) | bin/buildindexedfile.sh -a -p build/TOTAL.DATA build/X.INDEXED > build/XSINGLE.IDX
index: preconditions md asmfx asmprelaunch asmdemo compress extract
@ -88,14 +99,6 @@ index: preconditions md asmfx asmprelaunch asmdemo compress extract
[ -f build/index ] || (bin/converthelp.sh res/CREDITS build/CREDITS)
[ -f build/index ] || $(PARALLEL) 'bin/converthelp.sh "{}" "build/GAMEHELP/{/}"' ::: res/GAMEHELP/*
#
# create a version of GAMES.CONF without comments or blank lines
#
[ -f build/index ] || (awk '!/^$$|^#/' < res/GAMES.CONF > build/GAMES.CONF)
#
# create a list of all game filenames, without metadata or display names, sorted by game filename
#
[ -f build/index ] || (awk -F, '/,/ { print $$2 }' < build/GAMES.CONF | awk -F= '{ print $$1 }' | sort > build/GAMES.SORTED)
#
# precompute indexed files for prelaunch
# note: prelaunch must be first in TOTAL.DATA due to a hack in LoadStandardPrelaunch
# note 2: these can not be padded because they are loaded at $0106 and padding would clobber the stack
@ -132,6 +135,12 @@ index: preconditions md asmfx asmprelaunch asmdemo compress extract
[ -f build/index ] || (bin/buildindexedfile.sh -p -a build/TOTAL.DATA build/FX.INDEXED < res/FX.CONF > build/FX.IDX)
[ -f build/index ] || (bin/buildindexedfile.sh -p -a build/TOTAL.DATA build/FX.INDEXED < res/DFX.CONF > build/DFX.IDX)
[ -f build/index ] || (bin/buildindexedfile.sh -p -a build/TOTAL.DATA build/FX.INDEXED < res/SFX.CONF > build/SFX.IDX)
[ -f build/index ] || ((for f in build/FXCODE/*; do echo "$$(basename $$f)"; done) | bin/buildindexedfile.sh -p -a build/TOTAL.DATA build/FXCODE > build/FXCODE.IDX)
#
# precompute indexed files for coordinates files loaded by graphic effects
# note: these can not be padded because some of them are loaded into tight spaces near the unclobberable top of main memory
#
[ -f build/index ] || ((for f in build/FXDATA/*; do echo "$$(basename $$f)"; done) | bin/buildindexedfile.sh -a build/TOTAL.DATA build/FXDATA > build/FXDATA.IDX)
#
# precompute indexed files for HGR & DHGR action screenshots
# note: these can not be padded because they are compressed and the decompressor needs the exact size
@ -194,6 +203,8 @@ index: preconditions md asmfx asmprelaunch asmdemo compress extract
[ -f build/index ] || bin/addfile.sh build/FX.IDX build/TOTAL.DATA > src/index/fx.idx.a
[ -f build/index ] || bin/addfile.sh build/DFX.IDX build/TOTAL.DATA > src/index/dfx.idx.a
[ -f build/index ] || bin/addfile.sh build/SFX.IDX build/TOTAL.DATA > src/index/sfx.idx.a
[ -f build/index ] || bin/addfile.sh build/FXCODE.IDX build/TOTAL.DATA > src/index/fxcode.idx.a
[ -f build/index ] || bin/addfile.sh build/FXDATA.IDX build/TOTAL.DATA > src/index/fxdata.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/MINIATTRACT0.IDX build/TOTAL.DATA > src/index/miniattract0.idx.a
@ -254,12 +265,12 @@ attract: compress
bin/check-attract-mode.sh
bin/generate-mini-attract-mode.sh
cache: preconditions md
cache: preconditions md gamesconf
$(PARALLEL) ::: \
'awk -F= '"'"'/^00/ { print $$2 }'"'"' < res/GAMES.CONF | bin/buildcache.py > build/cache00.a' \
'awk -F= '"'"'/^0/ { print $$2 }'"'"' < res/GAMES.CONF | bin/buildcache.py > build/cache01.a' \
'awk -F= '"'"'/^.0/ { print $$2 }'"'"' < res/GAMES.CONF | bin/buildcache.py > build/cache10.a' \
'awk -F= '"'"'!/^$$|^#|^\[/ { print $$2 }'"'"' < res/GAMES.CONF | bin/buildcache.py > build/cache11.a'
'awk -F= '"'"'/^00/ { print $$2 }'"'"' < build/GAMES.CONF | bin/buildcache.py > build/cache00.a' \
'awk -F= '"'"'/^0/ { print $$2 }'"'"' < build/GAMES.CONF | bin/buildcache.py > build/cache01.a' \
'awk -F= '"'"'/^.0/ { print $$2 }'"'"' < build/GAMES.CONF | bin/buildcache.py > build/cache10.a' \
'awk -F= '"'"'!/^$$|^#/ { print $$2 }'"'"' < build/GAMES.CONF | bin/buildcache.py > build/cache11.a'
$(PARALLEL) ::: \
'$(ACME) -o res/CACHE00.IDX build/cache00.a' \
'$(ACME) -o res/CACHE01.IDX build/cache01.a' \
@ -270,7 +281,7 @@ mount: dsk
osascript bin/V2Make.scpt "`pwd`" bin/4cade.vii build/"$(DISK)"
md:
mkdir -p build/X build/X.INDEXED build/FX build/FX.INDEXED build/PRELAUNCH build/PRELAUNCH.INDEXED build/ATTRACT build/SS build/GAMEHELP build/DEMO
mkdir -p build/X build/X.INDEXED build/FX.INDEXED build/FXDATA build/FXCODE build/PRELAUNCH build/PRELAUNCH.INDEXED build/ATTRACT build/SS build/GAMEHELP build/DEMO
touch build/log
clean:

View File

@ -41,9 +41,7 @@ for (i = 0; i < entries.length; i++)
{
groups += "!byte " + (1 + 1 + entries[i].length + 5).toString() + "\n" + "!byte " + entries[i].length.toString() + "\n" + "!text \"" + entries[i] + "\"\n" + "!be24 " + fx_off.toString() + "\n"
size = a.getfile(WScript.Arguments(3) + "\\" + entries[i]).size
// if offset+size does not cross a block boundary, use the size
// otherwise adjust size until it ends at the next block boundary to avoid a partial copy on the last block
groups += "!le16 " + ((Math.floor(fx_off / 512) == Math.floor((fx_off + size) / 512)) ? size : (((fx_off + size + 511) & -512) - fx_off)).toString() + "\n"
groups += "!le16 " + size + "\n"
fx_off += size
}

View File

@ -45,7 +45,7 @@ fi
# make temp file with list of lines that contain keys
records=$(mktemp)
tr -d "\r" | awk '!/^$|^#|^\[/' > "$records"
tr -d "\r" | awk '!/^$|^#/' > "$records"
# make temp assembly source file that represents the binary OKVS data structure
source=$(mktemp)

View File

@ -2,7 +2,7 @@
# make temp file with just the key/value pairs (strip blank lines, comments, eof marker)
records=$(mktemp)
tr -d "\r" | awk '!/^$|^#|^\[/' > "$records"
tr -d "\r" | awk '!/^$|^#/' > "$records"
# make temp assembly source file that represents the binary OKVS data structure
source=$(mktemp)

View File

@ -9,7 +9,7 @@
# make temp file with just the key/value pairs (strip blank lines, comments, eof marker)
records=$(mktemp)
tr -d "\r" | awk '!/^$|^#|^\[/' > "$records"
tr -d "\r" | awk '!/^$|^#/' > "$records"
# read logs of offsets & sizes for HGR and DHGR titles
# that were generated by an earlier script

View File

@ -39,8 +39,8 @@ if (!a.fileexists(WScript.Arguments(1)) || a.getfile(WScript.Arguments(1)).datel
bits = q.indexOf("," + name + "=") + 1
name = q.substr(bits + name.length + 1)
name = name.substr(0, name.indexOf("\n"))
needsjoystick = q.substr(bits - 5, 1)
needs128k = q.substr(bits - 4, 1)
needsjoystick = q.substr(bits - 6, 1)
needs128k = q.substr(bits - 5, 1)
displayname = ((WScript.Arguments.length == 3) ? name : "")
source.writeline("!byte " + (entries[i].length - ((val >= 0) ? 1 : 0) + displayname.length + 5))
source.writeline("!byte " + ((val >= 0) ? val : entries[i].length))

View File

@ -21,7 +21,7 @@ games=$(cat "$1")
# make temp file with just the key/value pairs (strip blank lines, comments, eof marker)
records=$(mktemp)
tr -d "\r" | awk '!/^$|^#|^\[/' > "$records"
tr -d "\r" | awk '!/^$|^#/' > "$records"
# make temp assembly source file that represents the binary OKVS data structure
source=$(mktemp)

View File

@ -50,13 +50,13 @@ cat res/GAMES.CONF |
grep '^\!to' src/demo/*.a | cut -d'/' -f5-|cut -d'#' -f1 |
grep -v "SPCARTOON" |
while read f; do
grep "$f=0" res/ATTRACT.CONF >/dev/null || echo "unused demo: $f";
grep "^$f=0" res/ATTRACT.CONF >/dev/null || echo "unused demo: $f";
done
# warn about unused slideshows
cd res/SS
for f in *.CONF; do
grep "$f" ../ATTRACT.CONF >/dev/null || echo "unused slideshow: $f";
grep "^$f=" ../ATTRACT.CONF >/dev/null || echo "unused slideshow: $f";
done
cd ../..

View File

@ -1,4 +1,4 @@
#!/bin/sh
tr "\*\~\<\>\$\%" "\020\021\010\025\016\017" < "$1" | \
tr -d "\r" | awk '!/^\[/ { printf "%c%s", length, $0 } END { printf "\xFF" }' > "$2"
tr -d "\r" | awk '{ printf "%c%s", length, $0 } END { printf "\xFF" }' > "$2"

13
bin/flatten.js Normal file
View File

@ -0,0 +1,13 @@
a = new ActiveXObject("scripting.filesystemobject")
x = new ActiveXObject("wscript.shell")
for (b = new Enumerator(a.GetFolder("build\\X").subfolders); !b.atEnd(); b.moveNext())
{
for (c = new Enumerator(b.item().subfolders); !c.atEnd(); c.moveNext())
{
x.run('cmd /c move build\\X\\' + b.item().name + '\\' + c.item().name + ' build\\X', 0, 1)
}
x.run('cmd /c move build\\X\\' + b.item().name + '\\* build\\X', 0, 1)
x.run('cmd /c rd build\\X\\' + b.item().name, 0, 1)
}

View File

@ -75,9 +75,6 @@ cat res/GAMES.CONF |
echo "ARTWORK.SHR/POP.END=C" >> /tmp/g
fi
# add eof
echo -e "\n[eof]" >> /tmp/g
cat /tmp/g > res/ATTRACT/"$game"
# clean up

View File

@ -13,13 +13,6 @@ while (!b.atendofstream)
d = d.substr(0, e)
}
e = d.indexOf("[eof]")
if (e > -1)
{
break
}
e = d.indexOf("=")
if (e == -1)
@ -35,5 +28,4 @@ while (!b.atendofstream)
}
}
q.write(d + "\n")
a.createtextfile("build\\GAMES.SORTED").write(c.sort().toString().replace(/,/g, "\n"))

BIN
res/ACTION.GR/COLORIX Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

BIN
res/ACTION.HGR/AERONAUTS Normal file

Binary file not shown.

BIN
res/ACTION.HGR/AERONAUTS2 Normal file

Binary file not shown.

BIN
res/ACTION.HGR/ANTIAIR Normal file

Binary file not shown.

BIN
res/ACTION.HGR/ANTIAIR2 Normal file

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More