early-roguelike/rogue4
John "Elwin" Edwards fdc346deb1 rogue4: don't put savefile metadata into the savefile.
The save_file() function in save.c stored the savefile's device number,
inode number, creation time, and modification time in the file.  The
restore() function read them back, and apparently used to compare them
to protect against cheaters.

Unfortunately, the types and sizes of these numbers differ from system
to system, which ruins the Roguelike Restoration Project's fine
portability work.  So they have been removed from the savefile.

This BREAKS SAVEFILE COMPATIBILITY, but old files can be converted by
excising the chunk starting at offset 0x22 with length sizeof(ino_t) +
sizeof(dev_t) + 2 * sizeof(time_t).  That's 0x14 on i686 and 0x20 on
x86_64, at least with current versions of Linux and glibc.
2013-08-05 20:49:41 -07:00
..
acinclude.m4 rogue4: ported to autoconf. 2011-10-11 15:20:40 +00:00
armor.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
chase.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
command.c rogue4: fix "You found you found" bug. 2012-08-20 20:30:19 -07:00
configure.ac rogue4: improve defaults for SAVEDIR. 2011-10-13 17:44:29 +00:00
daemon.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
daemons.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
extern.c rogue4: add logging all games 2009-11-26 03:02:13 +00:00
extern.h rogue4: add logging all games 2009-11-26 03:02:13 +00:00
fight.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
findpw.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
init.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
install-sh rogue4: ported to autoconf. 2011-10-11 15:20:40 +00:00
INSTALL.txt rogue4: update the installation instructions. 2011-10-14 16:47:52 +00:00
io.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
LICENSE.TXT Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
list.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
mach_dep.c Make sure lock_sc always returns a value. Fixes a weird bug that prevented the scorelist from updating. 2010-12-14 17:15:51 +00:00
main.c Make sure the score list appears in all situations. 2010-12-07 16:46:07 +00:00
Makefile.in rogue4: ported to autoconf. 2011-10-11 15:20:40 +00:00
mdport.c Improve support for keypad 5. 2011-10-28 16:00:05 +00:00
misc.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
monsters.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
move.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
new_level.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
options.c rogue4: prevent changing name or save file when using system savedir 2009-10-31 13:20:00 +00:00
pack.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
passages.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
potions.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
prob.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
rings.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
rip.c rogue3, rogue4: fix log message formatting for wins. 2012-08-07 21:17:29 +00:00
rogue.6.in rogue4: ported to autoconf. 2011-10-11 15:20:40 +00:00
rogue.h rogue4: ported to autoconf. 2011-10-11 15:20:40 +00:00
rogue.me.in rogue4: ported to autoconf. 2011-10-11 15:20:40 +00:00
rogue52.sln Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
rogue52.vcproj Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
rooms.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
save.c rogue4: don't put savefile metadata into the savefile. 2013-08-05 20:49:41 -07:00
scrolls.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
state.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
sticks.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
things.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
vers.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
weapons.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
wizard.c Add a file include 2009-11-24 13:04:43 +00:00
xcrypt.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
xstr.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00