SELF_RECOVER for win32

- define SELF_RECOVER for win32
- add code to perform a recover operation from
  within NetHack itself when SELF_RECOVER is defined
This commit is contained in:
nethack.allison
2002-08-21 03:30:19 +00:00
parent 591b832a84
commit 3515dcf1f1
5 changed files with 253 additions and 24 deletions

View File

@@ -644,6 +644,9 @@ E void FDECL(paniclog, (const char *, const char *));
E int FDECL(validate_prefix_locations, (char *));
E char** NDECL(get_saved_games);
E void FDECL(free_saved_games, (char**));
#ifdef SELF_RECOVER
E boolean NDECL(recover_savefile);
#endif
/* ### fountain.c ### */
@@ -1233,8 +1236,10 @@ E char *FDECL(get_username, (int *));
E void FDECL(nt_regularize, (char *));
E int NDECL((*nt_kbhit));
E void FDECL(Delay, (int));
# if !defined(WIN_CE)
E boolean FDECL(is_NetHack_process, (int));
# endif /* !WIN_CE */
# endif /* WIN32 */
#endif /* MICRO || WIN32 */
/* ### mthrowu.c ### */

View File

@@ -19,6 +19,7 @@
#define PC_LOCKING /* Prevent overwrites of aborted or in-progress games */
/* without first receiving confirmation. */
#define SELF_RECOVER /* Allow the game itself to recover from an aborted game */
/*
* -----------------------------------------------------------------