more NOCWD_ASSUMPTIONS
The NOCWD_ASSUMPTIONS conditional code allows readonly parts of NetHack to be separated from areas that require write-access. This allows the recent panic log needed a prefix.
This commit is contained in:
@@ -38,7 +38,7 @@ typedef long off_t;
|
||||
|
||||
#define NOCWD_ASSUMPTIONS /* Allow paths to be specified for HACKDIR,
|
||||
LEVELDIR, SAVEDIR, BONESDIR, DATADIR,
|
||||
SCOREDIR, LOCKDIR, and CONFIGDIR. */
|
||||
SCOREDIR, LOCKDIR, CONFIGDIR, and TROUBLEDIR */
|
||||
|
||||
/* data librarian defs */
|
||||
#ifndef NOCWD_ASSUMPTIONS
|
||||
|
||||
@@ -348,11 +348,12 @@ E const char *monexplain[], *invisexplain, *objexplain[], *oclass_names[];
|
||||
#define LEVELPREFIX 1
|
||||
#define SAVEPREFIX 2
|
||||
#define BONESPREFIX 3
|
||||
#define DATAPREFIX 4
|
||||
#define DATAPREFIX 4 /* this one must match hardcoded value in dlb.c */
|
||||
#define SCOREPREFIX 5
|
||||
#define LOCKPREFIX 6
|
||||
#define CONFIGPREFIX 7
|
||||
#define PREFIX_COUNT 8
|
||||
#define TROUBLEPREFIX 8
|
||||
#define PREFIX_COUNT 9
|
||||
/* used in files.c; xxconf.h can override if needed */
|
||||
# ifndef FQN_MAX_FILENAME
|
||||
#define FQN_MAX_FILENAME 512
|
||||
|
||||
@@ -596,7 +596,7 @@ E void NDECL(makerogueghost);
|
||||
/* ### files.c ### */
|
||||
|
||||
E const char *FDECL(fqname, (const char *, int, int));
|
||||
E FILE *FDECL(fopen_datafile, (const char *,const char *,BOOLEAN_P));
|
||||
E FILE *FDECL(fopen_datafile, (const char *,const char *,int));
|
||||
E boolean FDECL(uptodate, (int,const char *));
|
||||
E void FDECL(store_version, (int));
|
||||
#ifdef MFLOPPY
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
it is defined for WIN32.
|
||||
Allow paths to be specified for HACKDIR,
|
||||
LEVELDIR, SAVEDIR, BONESDIR, DATADIR,
|
||||
SCOREDIR, LOCKDIR, and CONFIGDIR */
|
||||
SCOREDIR, LOCKDIR, CONFIGDIR, and TROUBLEDIR */
|
||||
#define NO_TERMS
|
||||
#define ASCIIGRAPH
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
# endif
|
||||
#define NOCWD_ASSUMPTIONS /* Allow paths to be specified for HACKDIR,
|
||||
LEVELDIR, SAVEDIR, BONESDIR, DATADIR,
|
||||
SCOREDIR, LOCKDIR, and CONFIGDIR */
|
||||
SCOREDIR, LOCKDIR, CONFIGDIR, and TROUBLEDIR. */
|
||||
|
||||
#endif /* MSDOS configuration stuff */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user