]> granicus.if.org Git - nethack/commit
level file handling and trickery feedback
authornethack.rankin <nethack.rankin>
Fri, 23 Aug 2002 14:52:25 +0000 (14:52 +0000)
committernethack.rankin <nethack.rankin>
Fri, 23 Aug 2002 14:52:25 +0000 (14:52 +0000)
commitb00a9dcd4af5da7ec939c6da860fbc036d823bb5
treeba4f05961ab0c88352794b2621d1cf871f5288d5
parentc3125ec0f9ff28e0620749bb5208365f3e93f7d1
level file handling and trickery feedback

1) consolidate all core usage of `errno' in files.c;
2) give more feedback for any failure by create_levelfile or open_levelfile,
   similar to what was being done for problems during level change;
3) include trickery info in paniclog (many instances of "trickery" seem to
   be due to disk or quota problems rather than user misbehavior...).

The create_levelfile call in pcmain probably ought to be changed to use
error feedback, but in the meantime this should continue working.

Perhaps error() should be modified to update paniclog too, but I didn't
want to go through all its port-specific incarnations making changes.
include/extern.h
src/do.c
src/end.c
src/files.c
src/restore.c
src/save.c
sys/share/pcmain.c