1 /* SCCS Id: @(#)amiconf.h 3.4 2000/01/12 */
2 /* Copyright (c) Kenneth Lorber, Bethesda, Maryland, 1990, 1991, 1992, 1993. */
3 /* NetHack may be freely redistributed. See license for details. */
8 #undef abs /* avoid using macro form of abs */
10 # undef min /* this gets redefined */
11 # undef max /* this gets redefined */
14 #include <time.h> /* get time_t defined before use! */
16 #ifdef __SASC_60 /* since SAS can prevent re-inclusion */
17 #include <stdlib.h> /* general things, including builtins */
23 # define AZTEC_C_WORKAROUND /* Bug which turns up in sounds.c. Bummer... */
24 # define NO_SIGNAL /* 5.0 signal handling doesn't like SIGINT... */
30 # define DCC30_BUG /* A bitfield bug (from dog.c, others) in DICE 3.0. */
37 #define MICRO /* must be defined to allow some inclusions */
39 #define NOCWD_ASSUMPTIONS /* Allow paths to be specified for HACKDIR,
40 LEVELDIR, SAVEDIR, BONESDIR, DATADIR,
41 SCOREDIR, LOCKDIR, CONFIGDIR, and TROUBLEDIR */
43 /* data librarian defs */
44 #ifndef NOCWD_ASSUMPTIONS
45 # define DLBFILE "NetHack:nhdat" /* main library */
46 # define DLBFILE2 "NetHack:nhsdat" /* sound library */
48 # define DLBFILE "nhdat" /* main library */
49 # define DLBFILE2 "nhsdat" /* sound library */
52 #define FILENAME_CMP stricmp /* case insensitive */
58 /* Compile in New Intuition look for 2.0 */
59 #ifdef IDCMP_CLOSEWINDOW
60 # ifndef INTUI_NEW_LOOK
61 # define INTUI_NEW_LOOK 1
65 #define MFLOPPY /* You'll probably want this; provides assistance
66 * for typical personal computer configurations
70 /* ### amidos.c ### */
72 extern void FDECL(nethack_exit, (int));
74 /* ### amiwbench.c ### */
76 extern void NDECL(ami_wbench_init);
77 extern void NDECL(ami_wbench_args);
78 extern int FDECL(ami_wbench_getsave, (int));
79 extern void FDECL(ami_wbench_unlink, (char *));
80 extern int FDECL(ami_wbench_iconsize, (char *));
81 extern void FDECL(ami_wbench_iconwrite, (char *));
82 extern int FDECL(ami_wbench_badopt, (const char *));
83 extern void NDECL(ami_wbench_cleanup);
84 extern void FDECL(getlind, (const char *,char *,const char *));
86 /* ### winreq.c ### */
88 extern void amii_setpens(int);
90 extern void FDECL(exit, (int));
91 extern void NDECL(CleanUp);
92 extern void FDECL(Abort, (long));
93 extern int NDECL(getpid);
94 extern char *FDECL(CopyFile, (const char *, const char *));
95 extern int NDECL(kbhit);
96 extern int NDECL(WindowGetchar);
97 extern void FDECL(ami_argset, (int *, char *[]));
98 extern void FDECL(ami_mkargline, (int *, char **[]));
99 extern void ami_wininit_data(void);
101 #define FromWBench 0 /* A hint for compiler ... */
102 /* extern boolean FromWBench; /* how were we run? */
104 extern char **ami_argv;
111 #include "pcconf.h" /* remainder of stuff is almost same as the PC */
114 #define remove(x) unlink(x)
116 /* DICE wants rewind() to return void. We want it to return int. */
117 #if defined(_DCC) || defined(__GNUC__)
118 # define rewind(f) fseek(f, 0, 0)
122 extern FILE *FDECL(freopen, (const char *, const char *, FILE *));
123 extern char *FDECL(gets, (char *));
129 * If AZTEC_C we can't use the long cpath in vision.c....
136 * (Possibly) configurable Amiga options:
139 #define TEXTCOLOR /* Use colored monsters and objects */
140 #define HACKFONT /* Use special hack.font */
141 #define SHELL /* Have a shell escape command (!) */
142 #define MAIL /* Get mail at unexpected occasions */
143 #define DEFAULT_ICON "NetHack:default.icon" /* private icon */
144 #define AMIFLUSH /* toss typeahead (select flush in .cnf) */
145 /* #define OPT_DISPMAP /* enable fast_map option */
147 /* new window system options */
148 /* WRONG - AMIGA_INTUITION should go away */
150 # define AMIGA_INTUITION /* high power graphics interface (amii) */
153 #define CHANGE_COLOR 1
156 # define DEPTH 6 /* Maximum depth of the screen allowed */
158 # define DEPTH 2 /* Four colors...sigh... */
161 #define AMII_MAXCOLORS (1L<<DEPTH)
162 typedef unsigned short AMII_COLOR_TYPE;
164 #define PORT_HELP "nethack:amii.hlp"
168 #define AMII_MUFFLED_VOLUME 40
169 #define AMII_SOFT_VOLUME 50
170 #define AMII_OKAY_VOLUME 60
171 #define AMII_LOUDER_VOLUME 80
174 # define ANSI_DEFAULT
177 extern int amibbs; /* BBS mode? */
180 extern int amii_numcolors;
181 void FDECL( amii_setpens, (int) );
184 /* for cmd.c: override version in micro.h */
187 # define M(c) ((c) - 128 )
190 #endif /* AMICONF_H */