When calling panic() or impossible(), create the option of opening a browser window with most of the fields already populated. Code for MacOS and linux is included; other ports are affected by argument change to early_init which are done but not tested. To enable, define CRASHREPORT in config.h and set CRASHREPORTURL in sysconf to (for the moment at least) http[s]://www.nethack.org/common/contactcr.html Adds --grep-defined option to makedefs for Makefiles. Adds "bid" (binary identifier), an MD4 of the main nethack binary. This is ONLY for helping (in the future) contact.html to set the "NetHack from" field automatically for our own binaries. This can be faked, but the user can lie so nothing lost. There's nothing magic about MD4; other ports can use anything that prodcues a long apparently random string we can match against. - new option --bidshow for us to get the MD4 of a released binary so I can add it to the website. Only available in wizard mode and not in nethack.6. - typo macos -> macosx in hints file No support for packaging builds as I'm not sure what that would look like. Adds a javascript helper for MacOS. Adds a lua helper for linux (and builds and installs nhlua).
67 lines
2.3 KiB
C
67 lines
2.3 KiB
C
/* NetHack 3.7 sys.h $NHDT-Date: 1693083207 2023/08/26 20:53:27 $ $NHDT-Branch: keni-crashweb2 $:$NHDT-Revision: 1.41 $ */
|
|
/* Copyright (c) Kenneth Lorber, Kensington, Maryland, 2008. */
|
|
/* NetHack may be freely redistributed. See license for details. */
|
|
|
|
#ifndef SYS_H
|
|
#define SYS_H
|
|
|
|
struct sysopt {
|
|
char *support; /* local support contact */
|
|
char *recover; /* how to run recover - may be overridden by win port */
|
|
char *wizards; /* space-separated list of usernames */
|
|
char *fmtd_wizard_list; /* formatted version of wizards; null or "one"
|
|
or "one or two" or "one, two, or three", &c */
|
|
char *explorers; /* like wizards, but for access to explore mode */
|
|
char *shellers; /* like wizards, for ! command (-DSHELL); also ^Z */
|
|
char *genericusers; /* usernames that prompt for user name */
|
|
char *debugfiles; /* files to show debugplines in. '*' is all. */
|
|
#ifdef DUMPLOG
|
|
char *dumplogfile; /* where the dump file is saved */
|
|
#endif
|
|
int env_dbgfl; /* 1: debugfiles comes from getenv("DEBUGFILES")
|
|
* so sysconf's DEBUGFILES shouldn't override it;
|
|
* 0: getenv() hasn't been attempted yet;
|
|
* -1: getenv() didn't find a value for DEBUGFILES.
|
|
*/
|
|
int maxplayers;
|
|
int seduce;
|
|
int check_save_uid; /* restoring savefile checks UID? */
|
|
int check_plname; /* use plname for checking wizards/explorers/shellers */
|
|
int bones_pools;
|
|
long livelog; /* LL_foo events to livelog */
|
|
|
|
/* record file */
|
|
int persmax;
|
|
int pers_is_uid;
|
|
int entrymax;
|
|
int pointsmin;
|
|
int tt_oname_maxrank;
|
|
|
|
/* panic options */
|
|
char *gdbpath;
|
|
char *greppath;
|
|
char *crashreporturl;
|
|
int panictrace_gdb;
|
|
int panictrace_libc;
|
|
|
|
/* save and bones format */
|
|
int saveformat[2]; /* primary and onetime conversion */
|
|
int bonesformat[2]; /* primary and onetime conversion */
|
|
|
|
/* enable accessibility options */
|
|
int accessibility;
|
|
#ifdef WIN32
|
|
int portable_device_paths; /* nethack config for a portable device */
|
|
#endif
|
|
|
|
/* nethack's interactive help menu */
|
|
int hideusage; /* 0: include 'command-line usage' entry in help menu;
|
|
* 1: suppress it */
|
|
};
|
|
|
|
extern struct sysopt sysopt;
|
|
|
|
#define SYSOPT_SEDUCE sysopt.seduce
|
|
|
|
#endif /* SYS_H */
|