OSDN Git Service

import nethack-3.6.0
[jnethack/source.git] / include / sys.h
1 /* NetHack 3.6  sys.h   $NHDT-Date: 1449296291 2015/12/05 06:18:11 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.27 $ */
2 /* Copyright (c) Kenneth Lorber, Kensington, Maryland, 2008. */
3 /* NetHack may be freely redistributed.  See license for details. */
4
5 #ifndef SYS_H
6 #define SYS_H
7
8 struct sysopt {
9     char *support; /* local support contact */
10     char *recover; /* how to run recover - may be overridden by win port */
11     char *wizards; /* space-separated list of usernames */
12     char *fmtd_wizard_list; /* formatted version of wizards; null or "one"
13                                or "one or two" or "one, two, or three", &c */
14     char *explorers;  /* like wizards, but for access to explore mode */
15     char *shellers;   /* like wizards, for ! command (-DSHELL); also ^Z */
16     char *debugfiles; /* files to show debugplines in. '*' is all. */
17     int env_dbgfl;    /*  1: debugfiles comes from getenv("DEBUGFILES")
18                        *     so sysconf's DEBUGFILES shouldn't override it;
19                        *  0: getenv() hasn't been attempted yet;
20                        * -1: getenv() didn't find a value for DEBUGFILES.
21                        */
22     int maxplayers;
23     int seduce;
24     int check_save_uid; /* restoring savefile checks UID? */
25
26     /* record file */
27     int persmax;
28     int pers_is_uid;
29     int entrymax;
30     int pointsmin;
31     int tt_oname_maxrank;
32
33     /* panic options */
34     char *gdbpath;
35     char *greppath;
36     int panictrace_gdb;
37     int panictrace_libc;
38 };
39
40 extern struct sysopt sysopt;
41
42 #define SYSOPT_SEDUCE sysopt.seduce
43
44 #endif /* SYS_H */