NetBSD/games/adventure
dholland c99eaa0a43 Redo save file handling. The old save files were unportable, had no
magic number or versioning, relied on random(3) never changing to a
different implementation, and were also saving pointers to disk and
reading them back again. It *looks* as if the pointers thus loaded
were reset before being used, but it's not particularly clear as the
main loop of this thing is goto-based FORTRAN translated lightly to C.
I've changed the logic to null these pointers instead of saving and
loading them, and things seem to still work.

The new save files have a header, support versioning, write only sized
types in network byte order, and for the toy encryption to discourage
cheating do something self-contained instead of using random(3) as a
stream cipher.

Because between the original import from 4.4 until earlier today
trying to save would result in SIGSEGV on most platforms, it's
unlikely anyone has a save file, but just in case (since the pointer
issue appears to be nonlethal) I've kept compat code for old save
files.
2012-01-07 22:23:16 +00:00
..
Makefile
adventure.6
crc.c Make this not crash on machines that are (a) 64 bit, or (b) have signed 2012-01-07 18:08:35 +00:00
done.c Whn ths cd ws wrttn, thr ws bt shrtg nd vwls wr xtrml xpnsv. Nowadays, 2009-08-25 06:56:52 +00:00
extern.h Remove 3rd and 4th clauses in christos' license. OK christos. 2009-10-21 01:07:44 +00:00
glorkz
hdr.h Whn ths cd ws wrttn, thr ws bt shrtg nd vwls wr xtrml xpnsv. Nowadays, 2009-08-25 06:56:52 +00:00
init.c NULL does not need a cast 2011-08-31 16:24:54 +00:00
io.c Whn ths cd ws wrttn, thr ws bt shrtg nd vwls wr xtrml xpnsv. Nowadays, 2009-08-25 06:56:52 +00:00
main.c Whn ths cd ws wrttn, thr ws bt shrtg nd vwls wr xtrml xpnsv. Nowadays, 2009-08-25 06:56:52 +00:00
save.c Redo save file handling. The old save files were unportable, had no 2012-01-07 22:23:16 +00:00
setup.c
subr.c Whn ths cd ws wrttn, thr ws bt shrtg nd vwls wr xtrml xpnsv. Nowadays, 2009-08-25 06:56:52 +00:00
vocab.c Whn ths cd ws wrttn, thr ws bt shrtg nd vwls wr xtrml xpnsv. Nowadays, 2009-08-25 06:56:52 +00:00
wizard.c Whn ths cd ws wrttn, thr ws bt shrtg nd vwls wr xtrml xpnsv. Nowadays, 2009-08-25 06:56:52 +00:00