SELECTSAVED handling
By default, enable the SELECTSAVED option for everyone instead of just for Windows or Qt. And make Qt obey the 'selectsaved' run-time option. It can be disabled in config.h if necessary.
This commit is contained in:
@@ -496,6 +496,25 @@ typedef unsigned char uchar;
|
||||
* bugs left here.
|
||||
*/
|
||||
|
||||
/* SELECTSAVED: Enable the 'selectsaved' run-time option, allowing it
|
||||
* to be set in user's config file or NETHACKOPTIONS. When set, if
|
||||
* player is about to be given the "who are you?" prompt, check for
|
||||
* save files and if any are found, put up a menu of them for choosing
|
||||
* one to restore (plus extra menu entries "new game" and "quit").
|
||||
*
|
||||
* Not useful if players are forced to use a specific character name
|
||||
* such as their user name. However in some cases, players can set
|
||||
* their character name to one which is classified as generic in the
|
||||
* sysconf file (such as "player" or "games")
|
||||
* nethack -u player
|
||||
* to force the "who are you?" prompt in which case 'selectsaved' will
|
||||
* be honored.
|
||||
*
|
||||
* Comment out if the wildcard file name lookup in files.c doesn't
|
||||
* compile or doesn't work as intended.
|
||||
*/
|
||||
#define SELECTSAVED /* support for restoring via menu */
|
||||
|
||||
/* TTY_TILES_ESCCODES: Enable output of special console escape codes
|
||||
* which act as hints for external programs such as EbonHack, or hterm.
|
||||
*
|
||||
@@ -535,6 +554,8 @@ typedef unsigned char uchar;
|
||||
* Only available with POSIX_TYPES or GNU C */
|
||||
/* #define MSGHANDLER */
|
||||
|
||||
/* enable status highlighting via STATUS_HILITE directives in run-time
|
||||
config file and the 'statushilites' option */
|
||||
#define STATUS_HILITES /* support hilites of status fields */
|
||||
|
||||
/* #define WINCHAIN */ /* stacked window systems */
|
||||
|
||||
@@ -804,7 +804,7 @@ E int FDECL(parse_sym_line, (char *, int));
|
||||
E void FDECL(paniclog, (const char *, const char *));
|
||||
E void FDECL(testinglog, (const char *, const char *, const char *));
|
||||
E int FDECL(validate_prefix_locations, (char *));
|
||||
#if defined(SELECTSAVED) || (defined(UNIX) && defined(QT_GRAPHICS))
|
||||
#ifdef SELECTSAVED
|
||||
E char *FDECL(plname_from_file, (const char *));
|
||||
#endif
|
||||
E char **NDECL(get_saved_games);
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
#define TTY_SOUND_ESCCODES
|
||||
|
||||
/*#define CHANGE_COLOR*/ /* allow palette changes */
|
||||
#define SELECTSAVED /* Provide menu of saved games to choose from at start */
|
||||
|
||||
#define QWERTZ_SUPPORT /* when swap_yz is True, numpad 7 is 'z' not 'y' */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user