Merge branch 'NetHack-3.6.0'
This commit is contained in:
6
Files
6
Files
@@ -273,14 +273,14 @@ win/tty:
|
|||||||
getline.c termcap.c topl.c wintty.c
|
getline.c termcap.c topl.c wintty.c
|
||||||
|
|
||||||
win/win32:
|
win/win32:
|
||||||
(files for Windows Windows 200x, Windows XP and Windows 7 version)
|
(files for Windows versions - tested up to Windows 10)
|
||||||
mhaskyn.c mhaskyn.h mhdlg.c mhdlg.h mhfont.c
|
mhaskyn.c mhaskyn.h mhdlg.c mhdlg.h mhfont.c
|
||||||
mhfont.h mhinput.c mhinput.h mhmain.c mhmain.h
|
mhfont.h mhinput.c mhinput.h mhmain.c mhmain.h
|
||||||
mhmap.c mhmap.h mhmenu.c mhmenu.h mhmsg.h
|
mhmap.c mhmap.h mhmenu.c mhmenu.h mhmsg.h
|
||||||
mhmsgwnd.c mhmsgwnd.h mhrip.c mhrip.h mhsplash.c
|
mhmsgwnd.c mhmsgwnd.h mhrip.c mhrip.h mhsplash.c
|
||||||
mhsplash.h mhstatus.c mhstatus.h mhtext.c mhtext.h
|
mhsplash.h mhstatus.c mhstatus.h mhtext.c mhtext.h
|
||||||
mnsel.uu mnselcnt.uu mnunsel.uu mswproc.c
|
mnsel.uu mnselcnt.uu mnunsel.uu mswproc.c petmark.uu
|
||||||
petmark.uu pilemark.uu resource.h rip.uu splash.uu
|
pilemark.uu record.uu resource.h rip.uu splash.uu
|
||||||
tiles.mak winMS.h winhack.c winhack.rc
|
tiles.mak winMS.h winhack.c winhack.rc
|
||||||
|
|
||||||
win/win32/vs2010:
|
win/win32/vs2010:
|
||||||
|
|||||||
@@ -77,6 +77,8 @@ change "unlockable chest" to "broken chest" so that it won't be misunderstood
|
|||||||
use doname instead of xname when using '/' or ';' to look at objects on map
|
use doname instead of xname when using '/' or ';' to look at objects on map
|
||||||
when a pet moves reluctantly, name the top item of the pile it is reluctant
|
when a pet moves reluctantly, name the top item of the pile it is reluctant
|
||||||
to step on if the hero sees or remembers any object(s) at that spot
|
to step on if the hero sees or remembers any object(s) at that spot
|
||||||
|
ensure sufficient messages are given to clarify the transition from detected
|
||||||
|
vampire bats to fog clouds in Vlad's tower
|
||||||
|
|
||||||
|
|
||||||
Platform- and/or Interface-Specific Fixes
|
Platform- and/or Interface-Specific Fixes
|
||||||
@@ -99,6 +101,7 @@ MacOSX: force TIMED_DELAY build option on so that 'runmode' run-time option
|
|||||||
is functional
|
is functional
|
||||||
X11: core bug for '`' (backtick) and #terrain commands was only noticed by
|
X11: core bug for '`' (backtick) and #terrain commands was only noticed by
|
||||||
X11 interface: impossible "add_menu: called before start_menu"
|
X11 interface: impossible "add_menu: called before start_menu"
|
||||||
|
X11: enable a scroll bar in menu windows
|
||||||
|
|
||||||
|
|
||||||
General New Features
|
General New Features
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* NetHack 3.6 flag.h $NHDT-Date: 1435002669 2015/06/22 19:51:09 $ $NHDT-Branch: master $:$NHDT-Revision: 1.89 $ */
|
/* NetHack 3.6 flag.h $NHDT-Date: 1451683047 2016/01/01 21:17:27 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.93 $ */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
@@ -259,6 +259,7 @@ struct instance_flags {
|
|||||||
boolean lan_mail; /* mail is initialized */
|
boolean lan_mail; /* mail is initialized */
|
||||||
boolean lan_mail_fetched; /* mail is awaiting display */
|
boolean lan_mail_fetched; /* mail is awaiting display */
|
||||||
#endif
|
#endif
|
||||||
|
boolean wizweight; /* display weight of everything in wizard mode */
|
||||||
/*
|
/*
|
||||||
* Window capability support.
|
* Window capability support.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* NetHack 3.6 hack.h $NHDT-Date: 1434056948 2015/06/11 21:09:08 $ $NHDT-Branch: master $:$NHDT-Revision: 1.66 $ */
|
/* NetHack 3.6 hack.h $NHDT-Date: 1451683048 2016/01/01 21:17:28 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.68 $ */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
@@ -374,7 +374,8 @@ NEARDATA extern coord bhitpos; /* place where throw or zap hits or stops */
|
|||||||
#define DISP_IN_GAME 3 /* may be set via extern program, displayed in game \
|
#define DISP_IN_GAME 3 /* may be set via extern program, displayed in game \
|
||||||
*/
|
*/
|
||||||
#define SET_IN_GAME 4 /* may be set via extern program or set in the game */
|
#define SET_IN_GAME 4 /* may be set via extern program or set in the game */
|
||||||
#define SET__IS_VALUE_VALID(s) ((s < SET_IN_SYS) || (s > SET_IN_GAME))
|
#define SET_IN_WIZGAME 5 /* may be set set in the game if wizmode */
|
||||||
|
#define SET__IS_VALUE_VALID(s) ((s < SET_IN_SYS) || (s > SET_IN_WIZGAME))
|
||||||
|
|
||||||
#define FEATURE_NOTICE_VER(major, minor, patch) \
|
#define FEATURE_NOTICE_VER(major, minor, patch) \
|
||||||
(((unsigned long) major << 24) | ((unsigned long) minor << 16) \
|
(((unsigned long) major << 24) | ((unsigned long) minor << 16) \
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* NetHack 3.6 files.c $NHDT-Date: 1451001643 2015/12/25 00:00:43 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.197 $ */
|
/* NetHack 3.6 files.c $NHDT-Date: 1451697801 2016/01/02 01:23:21 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.199 $ */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
@@ -3355,7 +3355,11 @@ assure_syscf_file()
|
|||||||
* VMS overrides open() usage with a macro which requires it.
|
* VMS overrides open() usage with a macro which requires it.
|
||||||
*/
|
*/
|
||||||
#ifndef VMS
|
#ifndef VMS
|
||||||
|
# if defined(NOCWD_ASSUMPTIONS) && defined(WIN32)
|
||||||
|
fd = open(fqname(SYSCF_FILE, SYSCONFPREFIX, 0), O_RDONLY);
|
||||||
|
# else
|
||||||
fd = open(SYSCF_FILE, O_RDONLY);
|
fd = open(SYSCF_FILE, O_RDONLY);
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
fd = open(SYSCF_FILE, O_RDONLY, 0);
|
fd = open(SYSCF_FILE, O_RDONLY, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
16
src/mon.c
16
src/mon.c
@@ -1,4 +1,4 @@
|
|||||||
/* NetHack 3.6 mon.c $NHDT-Date: 1451176552 2015/12/27 00:35:52 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.202 $ */
|
/* NetHack 3.6 mon.c $NHDT-Date: 1451664800 2016/01/01 16:13:20 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.203 $ */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
@@ -3141,7 +3141,7 @@ boolean msg; /* "The oldmon turns into a newmon!" */
|
|||||||
int hpn, hpd;
|
int hpn, hpd;
|
||||||
int mndx, tryct;
|
int mndx, tryct;
|
||||||
struct permonst *olddata = mtmp->data;
|
struct permonst *olddata = mtmp->data;
|
||||||
char oldname[BUFSZ], newname[BUFSZ];
|
char oldname[BUFSZ], l_oldname[BUFSZ], newname[BUFSZ];
|
||||||
|
|
||||||
/* Riders are immune to polymorph and green slime */
|
/* Riders are immune to polymorph and green slime */
|
||||||
if (is_rider(mtmp->data))
|
if (is_rider(mtmp->data))
|
||||||
@@ -3153,6 +3153,9 @@ boolean msg; /* "The oldmon turns into a newmon!" */
|
|||||||
SUPPRESS_SADDLE, FALSE));
|
SUPPRESS_SADDLE, FALSE));
|
||||||
oldname[0] = highc(oldname[0]);
|
oldname[0] = highc(oldname[0]);
|
||||||
}
|
}
|
||||||
|
/* we need this one whether msg is true or not */
|
||||||
|
Strcpy(l_oldname, x_monnam(mtmp, ARTICLE_THE, (char *) 0,
|
||||||
|
(has_mname(mtmp)) ? SUPPRESS_SADDLE : 0, FALSE));
|
||||||
|
|
||||||
/* mdat = 0 -> caller wants a random monster shape */
|
/* mdat = 0 -> caller wants a random monster shape */
|
||||||
if (mdat == 0) {
|
if (mdat == 0) {
|
||||||
@@ -3246,14 +3249,19 @@ boolean msg; /* "The oldmon turns into a newmon!" */
|
|||||||
char msgtrail[BUFSZ];
|
char msgtrail[BUFSZ];
|
||||||
|
|
||||||
if (is_vampshifter(mtmp)) {
|
if (is_vampshifter(mtmp)) {
|
||||||
Strcpy(msgtrail, " that had been shapeshifted");
|
Sprintf(msgtrail, " which was a shapeshifted %s",
|
||||||
|
m_monnam(mtmp));
|
||||||
} else if (is_animal(mdat)) {
|
} else if (is_animal(mdat)) {
|
||||||
Strcpy(msgtrail, "'s stomach");
|
Strcpy(msgtrail, "'s stomach");
|
||||||
} else {
|
} else {
|
||||||
msgtrail[0] = '\0';
|
msgtrail[0] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
You("break out of %s%s!", mon_nam(mtmp), msgtrail);
|
/* Do this even if msg is FALSE */
|
||||||
|
You("%s %s%s!",
|
||||||
|
(amorphous(olddata) || is_whirly(olddata)) ?
|
||||||
|
"emerge from" : "break out of",
|
||||||
|
l_oldname, msgtrail);
|
||||||
mtmp->mhp = 1; /* almost dead */
|
mtmp->mhp = 1; /* almost dead */
|
||||||
}
|
}
|
||||||
expels(mtmp, olddata, FALSE);
|
expels(mtmp, olddata, FALSE);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* NetHack 3.6 monmove.c $NHDT-Date: 1446808446 2015/11/06 11:14:06 $ $NHDT-Branch: master $:$NHDT-Revision: 1.78 $ */
|
/* NetHack 3.6 monmove.c $NHDT-Date: 1451664819 2016/01/01 16:13:39 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.79 $ */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
@@ -14,7 +14,7 @@ STATIC_DCL void FDECL(release_hero, (struct monst *));
|
|||||||
STATIC_DCL void FDECL(distfleeck, (struct monst *, int *, int *, int *));
|
STATIC_DCL void FDECL(distfleeck, (struct monst *, int *, int *, int *));
|
||||||
STATIC_DCL int FDECL(m_arrival, (struct monst *));
|
STATIC_DCL int FDECL(m_arrival, (struct monst *));
|
||||||
STATIC_DCL boolean FDECL(stuff_prevents_passage, (struct monst *));
|
STATIC_DCL boolean FDECL(stuff_prevents_passage, (struct monst *));
|
||||||
STATIC_DCL int FDECL(vamp_shift, (struct monst *, struct permonst *));
|
STATIC_DCL int FDECL(vamp_shift, (struct monst *, struct permonst *, BOOLEAN_P));
|
||||||
|
|
||||||
/* True if mtmp died */
|
/* True if mtmp died */
|
||||||
boolean
|
boolean
|
||||||
@@ -1216,7 +1216,7 @@ postmov:
|
|||||||
if (here->doormask & (D_LOCKED | D_CLOSED)
|
if (here->doormask & (D_LOCKED | D_CLOSED)
|
||||||
&& (amorphous(ptr)
|
&& (amorphous(ptr)
|
||||||
|| (!amorphous(ptr) && can_fog(mtmp)
|
|| (!amorphous(ptr) && can_fog(mtmp)
|
||||||
&& vamp_shift(mtmp, &mons[PM_FOG_CLOUD])))) {
|
&& vamp_shift(mtmp, &mons[PM_FOG_CLOUD],canspotmon(mtmp))))) {
|
||||||
if (flags.verbose && canseemon(mtmp))
|
if (flags.verbose && canseemon(mtmp))
|
||||||
pline("%s %s under the door.", Monnam(mtmp),
|
pline("%s %s under the door.", Monnam(mtmp),
|
||||||
(ptr == &mons[PM_FOG_CLOUD]
|
(ptr == &mons[PM_FOG_CLOUD]
|
||||||
@@ -1586,12 +1586,19 @@ struct monst *mtmp;
|
|||||||
}
|
}
|
||||||
|
|
||||||
STATIC_OVL int
|
STATIC_OVL int
|
||||||
vamp_shift(mon, ptr)
|
vamp_shift(mon, ptr, domsg)
|
||||||
struct monst *mon;
|
struct monst *mon;
|
||||||
struct permonst *ptr;
|
struct permonst *ptr;
|
||||||
|
boolean domsg;
|
||||||
{
|
{
|
||||||
int reslt = 0;
|
int reslt = 0;
|
||||||
|
char fmtstr[BUFSZ];
|
||||||
|
|
||||||
|
if (domsg) {
|
||||||
|
Sprintf(fmtstr, "You %s %%s where %s was.",
|
||||||
|
sensemon(mon) ? "now detect" : "observe",
|
||||||
|
an(m_monnam(mon)));
|
||||||
|
}
|
||||||
if (mon->cham >= LOW_PM) {
|
if (mon->cham >= LOW_PM) {
|
||||||
if (ptr == &mons[mon->cham])
|
if (ptr == &mons[mon->cham])
|
||||||
mon->cham = NON_PM;
|
mon->cham = NON_PM;
|
||||||
@@ -1600,6 +1607,9 @@ struct permonst *ptr;
|
|||||||
mon->cham = monsndx(mon->data);
|
mon->cham = monsndx(mon->data);
|
||||||
reslt = newcham(mon, ptr, FALSE, FALSE);
|
reslt = newcham(mon, ptr, FALSE, FALSE);
|
||||||
}
|
}
|
||||||
|
if (reslt && domsg) {
|
||||||
|
pline(fmtstr, an(m_monnam(mon)));
|
||||||
|
}
|
||||||
return reslt;
|
return reslt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* NetHack 3.6 objnam.c $NHDT-Date: 1450584419 2015/12/20 04:06:59 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.159 $ */
|
/* NetHack 3.6 objnam.c $NHDT-Date: 1451683056 2016/01/01 21:17:36 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.162 $ */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
@@ -1042,7 +1042,7 @@ boolean with_price;
|
|||||||
|
|
||||||
/* show weight for items (debug tourist info)
|
/* show weight for items (debug tourist info)
|
||||||
* aum is stolen from Crawl's "Arbitrary Unit of Measure" */
|
* aum is stolen from Crawl's "Arbitrary Unit of Measure" */
|
||||||
if (wizard) {
|
if (wizard && iflags.wizweight) {
|
||||||
Sprintf(eos(bp), " (%d aum)", obj->owt);
|
Sprintf(eos(bp), " (%d aum)", obj->owt);
|
||||||
}
|
}
|
||||||
bp = strprepend(bp, prefix);
|
bp = strprepend(bp, prefix);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* NetHack 3.6 options.c $NHDT-Date: 1449830206 2015/12/11 10:36:46 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.244 $ */
|
/* NetHack 3.6 options.c $NHDT-Date: 1451683057 2016/01/01 21:17:37 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.249 $ */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
@@ -147,7 +147,7 @@ static struct Bool_Opt {
|
|||||||
{ "mention_walls", &iflags.mention_walls, FALSE, SET_IN_GAME },
|
{ "mention_walls", &iflags.mention_walls, FALSE, SET_IN_GAME },
|
||||||
{ "menucolors", &iflags.use_menu_color, FALSE, SET_IN_GAME },
|
{ "menucolors", &iflags.use_menu_color, FALSE, SET_IN_GAME },
|
||||||
/* for menu debugging only*/
|
/* for menu debugging only*/
|
||||||
{ "menu_tab_sep", &iflags.menu_tab_sep, FALSE, SET_IN_GAME },
|
{ "menu_tab_sep", &iflags.menu_tab_sep, FALSE, SET_IN_WIZGAME },
|
||||||
{ "menu_objsyms", &iflags.menu_head_objsym, FALSE, SET_IN_GAME },
|
{ "menu_objsyms", &iflags.menu_head_objsym, FALSE, SET_IN_GAME },
|
||||||
{ "mouse_support", &iflags.wc_mouse_support, TRUE, DISP_IN_GAME }, /*WC*/
|
{ "mouse_support", &iflags.wc_mouse_support, TRUE, DISP_IN_GAME }, /*WC*/
|
||||||
#ifdef NEWS
|
#ifdef NEWS
|
||||||
@@ -183,7 +183,7 @@ static struct Bool_Opt {
|
|||||||
DISP_IN_GAME },
|
DISP_IN_GAME },
|
||||||
#endif
|
#endif
|
||||||
{ "safe_pet", &flags.safe_dog, TRUE, SET_IN_GAME },
|
{ "safe_pet", &flags.safe_dog, TRUE, SET_IN_GAME },
|
||||||
{ "sanity_check", &iflags.sanity_check, FALSE, SET_IN_GAME },
|
{ "sanity_check", &iflags.sanity_check, FALSE, SET_IN_WIZGAME },
|
||||||
{ "selectsaved", &iflags.wc2_selectsaved, TRUE, DISP_IN_GAME }, /*WC*/
|
{ "selectsaved", &iflags.wc2_selectsaved, TRUE, DISP_IN_GAME }, /*WC*/
|
||||||
{ "showexp", &flags.showexp, FALSE, SET_IN_GAME },
|
{ "showexp", &flags.showexp, FALSE, SET_IN_GAME },
|
||||||
{ "showrace", &flags.showrace, FALSE, SET_IN_GAME },
|
{ "showrace", &flags.showrace, FALSE, SET_IN_GAME },
|
||||||
@@ -220,6 +220,7 @@ static struct Bool_Opt {
|
|||||||
{ "use_inverse", &iflags.wc_inverse, FALSE, SET_IN_GAME }, /*WC*/
|
{ "use_inverse", &iflags.wc_inverse, FALSE, SET_IN_GAME }, /*WC*/
|
||||||
#endif
|
#endif
|
||||||
{ "verbose", &flags.verbose, TRUE, SET_IN_GAME },
|
{ "verbose", &flags.verbose, TRUE, SET_IN_GAME },
|
||||||
|
{ "wizweight", &iflags.wizweight, FALSE, SET_IN_WIZGAME },
|
||||||
{ "wraptext", &iflags.wc2_wraptext, FALSE, SET_IN_GAME },
|
{ "wraptext", &iflags.wc2_wraptext, FALSE, SET_IN_GAME },
|
||||||
#ifdef ZEROCOMP
|
#ifdef ZEROCOMP
|
||||||
{ "zerocomp", &iflags.zerocomp,
|
{ "zerocomp", &iflags.zerocomp,
|
||||||
@@ -3554,12 +3555,11 @@ doset()
|
|||||||
for (i = 0; boolopt[i].name; i++)
|
for (i = 0; boolopt[i].name; i++)
|
||||||
if ((bool_p = boolopt[i].addr) != 0
|
if ((bool_p = boolopt[i].addr) != 0
|
||||||
&& ((boolopt[i].optflags == DISP_IN_GAME && pass == 0)
|
&& ((boolopt[i].optflags == DISP_IN_GAME && pass == 0)
|
||||||
|| (boolopt[i].optflags == SET_IN_GAME && pass == 1))) {
|
|| (boolopt[i].optflags == SET_IN_GAME && pass == 1)
|
||||||
|
|| (boolopt[i].optflags == SET_IN_WIZGAME && pass == 1 && wizard))) {
|
||||||
if (bool_p == &flags.female)
|
if (bool_p == &flags.female)
|
||||||
continue; /* obsolete */
|
continue; /* obsolete */
|
||||||
if (bool_p == &iflags.sanity_check && !wizard)
|
if (boolopt[i].optflags == SET_IN_WIZGAME && !wizard)
|
||||||
continue;
|
|
||||||
if (bool_p == &iflags.menu_tab_sep && !wizard)
|
|
||||||
continue;
|
continue;
|
||||||
if (is_wc_option(boolopt[i].name)
|
if (is_wc_option(boolopt[i].name)
|
||||||
&& !wc_supported(boolopt[i].name))
|
&& !wc_supported(boolopt[i].name))
|
||||||
@@ -3595,7 +3595,7 @@ doset()
|
|||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
startpass = DISP_IN_GAME;
|
startpass = DISP_IN_GAME;
|
||||||
endpass = SET_IN_GAME;
|
endpass = (wizard) ? SET_IN_WIZGAME : SET_IN_GAME;
|
||||||
|
|
||||||
/* spin through the options to find the biggest name
|
/* spin through the options to find the biggest name
|
||||||
and adjust the format string accordingly if needed */
|
and adjust the format string accordingly if needed */
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* NetHack 3.6 pcmain.c $NHDT-Date: 1449893255 2015/12/12 04:07:35 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.67 $ */
|
/* NetHack 3.6 pcmain.c $NHDT-Date: 1451697809 2016/01/02 01:23:29 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.68 $ */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
@@ -178,7 +178,33 @@ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/
|
|||||||
if (dir == (char *) 0)
|
if (dir == (char *) 0)
|
||||||
dir = exepath(argv[0]);
|
dir = exepath(argv[0]);
|
||||||
#endif
|
#endif
|
||||||
if (dir != (char *) 0) {
|
#ifdef _MSC_VER
|
||||||
|
if (IsDebuggerPresent()) {
|
||||||
|
static char exepath[_MAX_PATH];
|
||||||
|
/* check if we're running under the debugger so we can get to the right folder anyway */
|
||||||
|
if (dir != (char *)0) {
|
||||||
|
char *top = (char *)0;
|
||||||
|
|
||||||
|
if (strlen(dir) < (_MAX_PATH - 1))
|
||||||
|
strcpy(exepath, dir);
|
||||||
|
top = strstr(exepath, "\\build\\.\\Debug");
|
||||||
|
if (!top) top = strstr(exepath, "\\build\\.\\Release");
|
||||||
|
if (top) {
|
||||||
|
*top = '\0';
|
||||||
|
if (strlen(exepath) < (_MAX_PATH - (strlen("\\binary\\") + 1))) {
|
||||||
|
Strcat(exepath, "\\binary\\");
|
||||||
|
if (strlen(exepath) < (PATHLEN - 1)) {
|
||||||
|
dir = exepath;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
if (dir != (char *)0) {
|
||||||
|
int fd;
|
||||||
|
boolean have_syscf = FALSE;
|
||||||
|
|
||||||
(void) strncpy(hackdir, dir, PATHLEN - 1);
|
(void) strncpy(hackdir, dir, PATHLEN - 1);
|
||||||
hackdir[PATHLEN - 1] = '\0';
|
hackdir[PATHLEN - 1] = '\0';
|
||||||
#ifdef NOCWD_ASSUMPTIONS
|
#ifdef NOCWD_ASSUMPTIONS
|
||||||
@@ -206,6 +232,34 @@ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* okay so we have the overriding and definitive locaton
|
||||||
|
for sysconf, but only in the event that there is not a
|
||||||
|
sysconf file there (for whatever reason), check a secondary
|
||||||
|
location rather than abort. */
|
||||||
|
|
||||||
|
/* Is there a SYSCF_FILE there? */
|
||||||
|
fd = open(fqname(SYSCF_FILE, SYSCONFPREFIX, 0), O_RDONLY);
|
||||||
|
if (fd >= 0) {
|
||||||
|
/* readable */
|
||||||
|
close(fd);
|
||||||
|
have_syscf = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!have_syscf) {
|
||||||
|
/* No SYSCF_FILE where there should be one, and
|
||||||
|
without an installer, a user may not be able
|
||||||
|
to place one there. So, let's try somewhere else... */
|
||||||
|
fqn_prefix[SYSCONFPREFIX] = fqn_prefix[0];
|
||||||
|
|
||||||
|
/* Is there a SYSCF_FILE there? */
|
||||||
|
fd = open(fqname(SYSCF_FILE, SYSCONFPREFIX, 0), O_RDONLY);
|
||||||
|
if (fd >= 0) {
|
||||||
|
/* readable */
|
||||||
|
close(fd);
|
||||||
|
have_syscf = TRUE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* user's home directory should default to this - unless
|
/* user's home directory should default to this - unless
|
||||||
* overridden */
|
* overridden */
|
||||||
envp = nh_getenv("USERPROFILE");
|
envp = nh_getenv("USERPROFILE");
|
||||||
|
|||||||
@@ -806,14 +806,6 @@ $(INCL)\vis_tab.h: $(U)makedefs.exe
|
|||||||
$(SRC)\vis_tab.c: $(U)makedefs.exe
|
$(SRC)\vis_tab.c: $(U)makedefs.exe
|
||||||
$(U)makedefs -z
|
$(U)makedefs -z
|
||||||
|
|
||||||
$(DAT)\engrave: $(DAT)\engrave.txt $(U)makedefs.exe
|
|
||||||
..\util\makedefs -s
|
|
||||||
$(DAT)\epitaph: $(DAT)\epitaph.txt $(U)makedefs.exe
|
|
||||||
..\util\makedefs -s
|
|
||||||
$(DAT)\bogusmon: $(DAT)\bogusmon.txt $(U)makedefs.exe
|
|
||||||
..\util\makedefs -s
|
|
||||||
|
|
||||||
|
|
||||||
#==========================================
|
#==========================================
|
||||||
# uudecode utility and uuencoded targets
|
# uudecode utility and uuencoded targets
|
||||||
#==========================================
|
#==========================================
|
||||||
@@ -1269,6 +1261,15 @@ $(DAT)\quest.dat: $(O)utility.tag $(DAT)\quest.txt
|
|||||||
$(DAT)\oracles: $(O)utility.tag $(DAT)\oracles.txt
|
$(DAT)\oracles: $(O)utility.tag $(DAT)\oracles.txt
|
||||||
$(U)makedefs -h
|
$(U)makedefs -h
|
||||||
|
|
||||||
|
$(DAT)\engrave: $(DAT)\engrave.txt $(U)makedefs.exe
|
||||||
|
$(U)makedefs -s
|
||||||
|
|
||||||
|
$(DAT)\epitaph: $(DAT)\epitaph.txt $(U)makedefs.exe
|
||||||
|
$(U)makedefs -s
|
||||||
|
|
||||||
|
$(DAT)\bogusmon: $(DAT)\bogusmon.txt $(U)makedefs.exe
|
||||||
|
$(U)makedefs -s
|
||||||
|
|
||||||
$(DAT)\dungeon: $(O)utility.tag $(DAT)\dungeon.def
|
$(DAT)\dungeon: $(O)utility.tag $(DAT)\dungeon.def
|
||||||
$(U)makedefs -e
|
$(U)makedefs -e
|
||||||
cd $(DAT)
|
cd $(DAT)
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
#include <X11/Xaw/Command.h>
|
#include <X11/Xaw/Command.h>
|
||||||
#include <X11/Xaw/Form.h>
|
#include <X11/Xaw/Form.h>
|
||||||
#include <X11/Xaw/Label.h>
|
#include <X11/Xaw/Label.h>
|
||||||
|
#include <X11/Xaw/Viewport.h>
|
||||||
#include <X11/Xaw/Cardinals.h>
|
#include <X11/Xaw/Cardinals.h>
|
||||||
#include <X11/Xos.h> /* for index() */
|
#include <X11/Xos.h> /* for index() */
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
@@ -50,6 +51,10 @@ static char ec_chars[EC_NCHARS];
|
|||||||
static Time ec_time;
|
static Time ec_time;
|
||||||
|
|
||||||
static const char extended_command_translations[] = "#override\n\
|
static const char extended_command_translations[] = "#override\n\
|
||||||
|
<Key>Left: scroll(4)\n\
|
||||||
|
<Key>Right: scroll(6)\n\
|
||||||
|
<Key>Up: scroll(8)\n\
|
||||||
|
<Key>Down: scroll(2)\n\
|
||||||
<Key>: ec_key()";
|
<Key>: ec_key()";
|
||||||
|
|
||||||
static const char player_select_translations[] = "#override\n\
|
static const char player_select_translations[] = "#override\n\
|
||||||
@@ -844,7 +849,7 @@ Widget **command_widgets;
|
|||||||
XtCallbackProc name_callback;
|
XtCallbackProc name_callback;
|
||||||
Widget *formp; /* return */
|
Widget *formp; /* return */
|
||||||
{
|
{
|
||||||
Widget popup, form, label, above, left, right;
|
Widget popup, form, label, above, left, right, view;
|
||||||
Widget *commands, *curr;
|
Widget *commands, *curr;
|
||||||
int i;
|
int i;
|
||||||
Arg args[8];
|
Arg args[8];
|
||||||
@@ -863,18 +868,24 @@ Widget *formp; /* return */
|
|||||||
XtOverrideTranslations(
|
XtOverrideTranslations(
|
||||||
popup, XtParseTranslationTable("<Message>WM_PROTOCOLS: ec_delete()"));
|
popup, XtParseTranslationTable("<Message>WM_PROTOCOLS: ec_delete()"));
|
||||||
|
|
||||||
|
num_args = 0;
|
||||||
|
XtSetArg(args[num_args], XtNforceBars, False); num_args++;
|
||||||
|
XtSetArg(args[num_args], XtNallowVert, True); num_args++;
|
||||||
|
view = XtCreateManagedWidget("menuformview", viewportWidgetClass, popup,
|
||||||
|
args, num_args);
|
||||||
|
|
||||||
num_args = 0;
|
num_args = 0;
|
||||||
XtSetArg(args[num_args], XtNtranslations,
|
XtSetArg(args[num_args], XtNtranslations,
|
||||||
XtParseTranslationTable(popup_translations));
|
XtParseTranslationTable(popup_translations));
|
||||||
num_args++;
|
num_args++;
|
||||||
*formp = form = XtCreateManagedWidget("menuform", formWidgetClass, popup,
|
*formp = form = XtCreateManagedWidget("menuform", formWidgetClass, view,
|
||||||
args, num_args);
|
args, num_args);
|
||||||
|
|
||||||
/* Get the default distance between objects in the form widget. */
|
/* Get the default distance between objects in the form widget. */
|
||||||
num_args = 0;
|
num_args = 0;
|
||||||
XtSetArg(args[num_args], nhStr(XtNdefaultDistance), &distance);
|
XtSetArg(args[num_args], nhStr(XtNdefaultDistance), &distance);
|
||||||
num_args++;
|
num_args++;
|
||||||
XtGetValues(form, args, num_args);
|
XtGetValues(view, args, num_args);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create the label.
|
* Create the label.
|
||||||
|
|||||||
3
win/win32/record.uu
Normal file
3
win/win32/record.uu
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
begin 600 record.
|
||||||
|
`
|
||||||
|
end
|
||||||
@@ -135,11 +135,11 @@
|
|||||||
copy $(OutDir)NetHack.exe ..\binary
|
copy $(OutDir)NetHack.exe ..\binary
|
||||||
copy ..\dat\nhdat ..\binary
|
copy ..\dat\nhdat ..\binary
|
||||||
copy ..\dat\license ..\binary
|
copy ..\dat\license ..\binary
|
||||||
if exist tiles.bmp copy tiles.bmp ..\binary
|
|
||||||
if NOT exist ..\binary\sysconf copy ..\sys\winnt\sysconf ..\binary\sysconf
|
if NOT exist ..\binary\sysconf copy ..\sys\winnt\sysconf ..\binary\sysconf
|
||||||
if exist ..\doc\Guidebook.txt copy ..\doc\Guidebook.txt ..\binary\Guidebook.txt
|
if exist ..\doc\Guidebook.txt copy ..\doc\Guidebook.txt ..\binary\Guidebook.txt
|
||||||
if exist ..\doc\nethack.txt copy ..\doc\nethack.txt ..\binary\NetHack.txt
|
if exist ..\doc\nethack.txt copy ..\doc\nethack.txt ..\binary\NetHack.txt
|
||||||
copy ..\sys\winnt\defaults.nh ..\binary\defaults.nh
|
copy ..\sys\winnt\defaults.nh ..\binary\defaults.nh
|
||||||
|
if NOT exist ..\binary\record copy ..\win\win32\record ..\binary\record
|
||||||
</Command>
|
</Command>
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
@@ -192,11 +192,11 @@
|
|||||||
copy $(OutDir)NetHack.exe ..\binary
|
copy $(OutDir)NetHack.exe ..\binary
|
||||||
copy ..\dat\nhdat ..\binary
|
copy ..\dat\nhdat ..\binary
|
||||||
copy ..\dat\license ..\binary
|
copy ..\dat\license ..\binary
|
||||||
if exist tiles.bmp copy tiles.bmp ..\binary
|
|
||||||
if NOT exist ..\binary\sysconf copy ..\sys\winnt\sysconf ..\binary\sysconf
|
if NOT exist ..\binary\sysconf copy ..\sys\winnt\sysconf ..\binary\sysconf
|
||||||
if exist ..\doc\Guidebook.txt copy ..\doc\Guidebook.txt ..\binary\Guidebook.txt
|
if exist ..\doc\Guidebook.txt copy ..\doc\Guidebook.txt ..\binary\Guidebook.txt
|
||||||
if exist ..\doc\nethack.txt copy ..\doc\nethack.txt ..\binary\NetHack.txt
|
if exist ..\doc\nethack.txt copy ..\doc\nethack.txt ..\binary\NetHack.txt
|
||||||
copy ..\sys\winnt\defaults.nh ..\binary\defaults.nh
|
copy ..\sys\winnt\defaults.nh ..\binary\defaults.nh
|
||||||
|
if NOT exist ..\binary\record copy ..\win\win32\record ..\binary\record
|
||||||
</Command>
|
</Command>
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
@@ -242,11 +242,11 @@
|
|||||||
copy ..\dat\nhdat ..\binary
|
copy ..\dat\nhdat ..\binary
|
||||||
copy ..\dat\license ..\binary
|
copy ..\dat\license ..\binary
|
||||||
copy ..\dat\symbols ..\binary
|
copy ..\dat\symbols ..\binary
|
||||||
if exist tiles.bmp copy tiles.bmp ..\binary
|
|
||||||
if NOT exist ..\binary\sysconf copy ..\sys\winnt\sysconf ..\binary\sysconf
|
if NOT exist ..\binary\sysconf copy ..\sys\winnt\sysconf ..\binary\sysconf
|
||||||
if exist ..\doc\Guidebook.txt copy ..\doc\Guidebook.txt ..\binary\Guidebook.txt
|
if exist ..\doc\Guidebook.txt copy ..\doc\Guidebook.txt ..\binary\Guidebook.txt
|
||||||
if exist ..\doc\nethack.txt copy ..\doc\nethack.txt ..\binary\NetHack.txt
|
if exist ..\doc\nethack.txt copy ..\doc\nethack.txt ..\binary\NetHack.txt
|
||||||
copy ..\sys\winnt\defaults.nh ..\binary\defaults.nh
|
copy ..\sys\winnt\defaults.nh ..\binary\defaults.nh
|
||||||
|
if NOT exist ..\binary\record copy ..\win\win32\record ..\binary\record
|
||||||
</Command>
|
</Command>
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
@@ -292,11 +292,11 @@
|
|||||||
copy ..\dat\nhdat ..\binary
|
copy ..\dat\nhdat ..\binary
|
||||||
copy ..\dat\license ..\binary
|
copy ..\dat\license ..\binary
|
||||||
copy ..\dat\symbols ..\binary
|
copy ..\dat\symbols ..\binary
|
||||||
if exist tiles.bmp copy tiles.bmp ..\binary
|
|
||||||
if NOT exist ..\binary\sysconf copy ..\sys\winnt\sysconf ..\binary\sysconf
|
if NOT exist ..\binary\sysconf copy ..\sys\winnt\sysconf ..\binary\sysconf
|
||||||
if exist ..\doc\Guidebook.txt copy ..\doc\Guidebook.txt ..\binary\Guidebook.txt
|
if exist ..\doc\Guidebook.txt copy ..\doc\Guidebook.txt ..\binary\Guidebook.txt
|
||||||
if exist ..\doc\nethack.txt copy ..\doc\nethack.txt ..\binary\NetHack.txt
|
if exist ..\doc\nethack.txt copy ..\doc\nethack.txt ..\binary\NetHack.txt
|
||||||
copy ..\sys\winnt\defaults.nh ..\binary\defaults.nh
|
copy ..\sys\winnt\defaults.nh ..\binary\defaults.nh
|
||||||
|
if NOT exist ..\binary\record copy ..\win\win32\record ..\binary\record
|
||||||
</Command>
|
</Command>
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
@@ -489,4 +489,4 @@
|
|||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -138,10 +138,12 @@
|
|||||||
<Command>copy $(OutDir)NetHackW.exe ..\binary
|
<Command>copy $(OutDir)NetHackW.exe ..\binary
|
||||||
copy ..\dat\nhdat ..\binary
|
copy ..\dat\nhdat ..\binary
|
||||||
copy ..\dat\license ..\binary
|
copy ..\dat\license ..\binary
|
||||||
|
copy ..\dat\symbols ..\binary
|
||||||
if NOT exist ..\binary\sysconf copy ..\sys\winnt\sysconf ..\binary\sysconf
|
if NOT exist ..\binary\sysconf copy ..\sys\winnt\sysconf ..\binary\sysconf
|
||||||
if exist ..\doc\Guidebook.txt copy ..\doc\Guidebook.txt ..\binary\Guidebook.txt
|
if exist ..\doc\Guidebook.txt copy ..\doc\Guidebook.txt ..\binary\Guidebook.txt
|
||||||
if exist ..\doc\nethack.txt copy ..\doc\nethack.txt ..\binary\NetHack.txt
|
if exist ..\doc\nethack.txt copy ..\doc\nethack.txt ..\binary\NetHack.txt
|
||||||
copy ..\sys\winnt\defaults.nh ..\binary\defaults.nh
|
copy ..\sys\winnt\defaults.nh ..\binary\defaults.nh
|
||||||
|
if NOT exist ..\binary\record copy ..\win\win32\record ..\binary\record
|
||||||
</Command>
|
</Command>
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
@@ -199,10 +201,12 @@ copy ..\sys\winnt\defaults.nh ..\binary\defaults.nh
|
|||||||
<Command>copy $(OutDir)NetHackW.exe ..\binary
|
<Command>copy $(OutDir)NetHackW.exe ..\binary
|
||||||
copy ..\dat\nhdat ..\binary
|
copy ..\dat\nhdat ..\binary
|
||||||
copy ..\dat\license ..\binary
|
copy ..\dat\license ..\binary
|
||||||
|
copy ..\dat\symbols ..\binary
|
||||||
if NOT exist ..\binary\sysconf copy ..\sys\winnt\sysconf ..\binary\sysconf
|
if NOT exist ..\binary\sysconf copy ..\sys\winnt\sysconf ..\binary\sysconf
|
||||||
if exist ..\doc\Guidebook.txt copy ..\doc\Guidebook.txt ..\binary\Guidebook.txt
|
if exist ..\doc\Guidebook.txt copy ..\doc\Guidebook.txt ..\binary\Guidebook.txt
|
||||||
if exist ..\doc\nethack.txt copy ..\doc\nethack.txt ..\binary\NetHack.txt
|
if exist ..\doc\nethack.txt copy ..\doc\nethack.txt ..\binary\NetHack.txt
|
||||||
copy ..\sys\winnt\defaults.nh ..\binary\defaults.nh
|
copy ..\sys\winnt\defaults.nh ..\binary\defaults.nh
|
||||||
|
if NOT exist ..\binary\record copy ..\win\win32\record ..\binary\record
|
||||||
</Command>
|
</Command>
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
@@ -264,6 +268,7 @@ if NOT exist ..\binary\sysconf copy ..\sys\winnt\sysconf ..\binary\sysconf
|
|||||||
if exist ..\doc\Guidebook.txt copy ..\doc\Guidebook.txt ..\binary\Guidebook.txt
|
if exist ..\doc\Guidebook.txt copy ..\doc\Guidebook.txt ..\binary\Guidebook.txt
|
||||||
if exist ..\doc\nethack.txt copy ..\doc\nethack.txt ..\binary\NetHack.txt
|
if exist ..\doc\nethack.txt copy ..\doc\nethack.txt ..\binary\NetHack.txt
|
||||||
copy ..\sys\winnt\defaults.nh ..\binary\defaults.nh
|
copy ..\sys\winnt\defaults.nh ..\binary\defaults.nh
|
||||||
|
if NOT exist ..\binary\record copy ..\win\win32\record ..\binary\record
|
||||||
</Command>
|
</Command>
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
@@ -322,6 +327,7 @@ if NOT exist ..\binary\sysconf copy ..\sys\winnt\sysconf ..\binary\sysconf
|
|||||||
if exist ..\doc\Guidebook.txt copy ..\doc\Guidebook.txt ..\binary\Guidebook.txt
|
if exist ..\doc\Guidebook.txt copy ..\doc\Guidebook.txt ..\binary\Guidebook.txt
|
||||||
if exist ..\doc\nethack.txt copy ..\doc\nethack.txt ..\binary\NetHack.txt
|
if exist ..\doc\nethack.txt copy ..\doc\nethack.txt ..\binary\NetHack.txt
|
||||||
copy ..\sys\winnt\defaults.nh ..\binary\defaults.nh
|
copy ..\sys\winnt\defaults.nh ..\binary\defaults.nh
|
||||||
|
if NOT exist ..\binary\record copy ..\win\win32\record ..\binary\record
|
||||||
</Command>
|
</Command>
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
@@ -505,4 +511,4 @@ copy ..\sys\winnt\defaults.nh ..\binary\defaults.nh
|
|||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -135,6 +135,9 @@ if NOT exist porthelp copy ..\sys\winnt\porthelp porthelp
|
|||||||
if exist porthelp echo porthelp >>dlb.lst
|
if exist porthelp echo porthelp >>dlb.lst
|
||||||
echo quest.dat >>dlb.lst
|
echo quest.dat >>dlb.lst
|
||||||
echo rumors >>dlb.lst
|
echo rumors >>dlb.lst
|
||||||
|
echo engrave >>dlb.lst
|
||||||
|
echo epitaph >>dlb.lst
|
||||||
|
echo bogusmon >>dlb.lst
|
||||||
echo tribute >>dlb.lst
|
echo tribute >>dlb.lst
|
||||||
echo help >>dlb.lst
|
echo help >>dlb.lst
|
||||||
echo hh >>dlb.lst
|
echo hh >>dlb.lst
|
||||||
@@ -206,6 +209,9 @@ if NOT exist porthelp copy ..\sys\winnt\porthelp porthelp
|
|||||||
if exist porthelp echo porthelp >>dlb.lst
|
if exist porthelp echo porthelp >>dlb.lst
|
||||||
echo quest.dat >>dlb.lst
|
echo quest.dat >>dlb.lst
|
||||||
echo rumors >>dlb.lst
|
echo rumors >>dlb.lst
|
||||||
|
echo engrave >>dlb.lst
|
||||||
|
echo epitaph >>dlb.lst
|
||||||
|
echo bogusmon >>dlb.lst
|
||||||
echo tribute >>dlb.lst
|
echo tribute >>dlb.lst
|
||||||
echo help >>dlb.lst
|
echo help >>dlb.lst
|
||||||
echo hh >>dlb.lst
|
echo hh >>dlb.lst
|
||||||
@@ -280,6 +286,9 @@ if NOT exist porthelp copy ..\sys\winnt\porthelp porthelp
|
|||||||
if exist porthelp echo porthelp >>dlb.lst
|
if exist porthelp echo porthelp >>dlb.lst
|
||||||
echo quest.dat >>dlb.lst
|
echo quest.dat >>dlb.lst
|
||||||
echo rumors >>dlb.lst
|
echo rumors >>dlb.lst
|
||||||
|
echo engrave >>dlb.lst
|
||||||
|
echo epitaph >>dlb.lst
|
||||||
|
echo bogusmon >>dlb.lst
|
||||||
echo tribute >>dlb.lst
|
echo tribute >>dlb.lst
|
||||||
echo help >>dlb.lst
|
echo help >>dlb.lst
|
||||||
echo hh >>dlb.lst
|
echo hh >>dlb.lst
|
||||||
@@ -352,6 +361,9 @@ if NOT exist porthelp copy ..\sys\winnt\porthelp porthelp
|
|||||||
if exist porthelp echo porthelp >>dlb.lst
|
if exist porthelp echo porthelp >>dlb.lst
|
||||||
echo quest.dat >>dlb.lst
|
echo quest.dat >>dlb.lst
|
||||||
echo rumors >>dlb.lst
|
echo rumors >>dlb.lst
|
||||||
|
echo engrave >>dlb.lst
|
||||||
|
echo epitaph >>dlb.lst
|
||||||
|
echo bogusmon >>dlb.lst
|
||||||
echo tribute >>dlb.lst
|
echo tribute >>dlb.lst
|
||||||
echo help >>dlb.lst
|
echo help >>dlb.lst
|
||||||
echo hh >>dlb.lst
|
echo hh >>dlb.lst
|
||||||
@@ -432,4 +444,4 @@ if NOT exist ..\binary\*.* mkdir ..\binary
|
|||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -123,40 +123,43 @@
|
|||||||
</Bscmake>
|
</Bscmake>
|
||||||
<PostBuildEvent>
|
<PostBuildEvent>
|
||||||
<Message>Running makedefs</Message>
|
<Message>Running makedefs</Message>
|
||||||
<Command>echo chdir ..\util
|
<Command>echo chdir ..\util
|
||||||
chdir ..\util
|
chdir ..\util
|
||||||
chdir
|
chdir
|
||||||
echo makedefs.exe -v
|
echo makedefs.exe -v
|
||||||
makedefs.exe -v
|
makedefs.exe -v
|
||||||
echo makedefs.exe -o
|
echo makedefs.exe -o
|
||||||
makedefs.exe -o
|
makedefs.exe -o
|
||||||
echo makedefs.exe -p
|
echo makedefs.exe -p
|
||||||
makedefs.exe -p
|
makedefs.exe -p
|
||||||
echo makedefs.exe -m
|
echo makedefs.exe -m
|
||||||
makedefs.exe -m
|
makedefs.exe -m
|
||||||
echo makedefs.exe -z
|
echo makedefs.exe -z
|
||||||
makedefs.exe -z
|
makedefs.exe -z
|
||||||
echo chdir ..\dat
|
echo chdir ..\dat
|
||||||
chdir ..\dat
|
chdir ..\dat
|
||||||
chdir
|
chdir
|
||||||
echo Generating NetHack database
|
echo Generating NetHack database
|
||||||
echo ..\util\makedefs.exe -d
|
echo ..\util\makedefs.exe -d
|
||||||
..\util\makedefs.exe -d
|
..\util\makedefs.exe -d
|
||||||
echo Generating rumors
|
echo Generating rumors
|
||||||
echo ..\util\makedefs.exe -r
|
echo ..\util\makedefs.exe -r
|
||||||
..\util\makedefs.exe -r
|
..\util\makedefs.exe -r
|
||||||
echo Generating quests
|
echo Generating ..\dat\engrave, ..\dat\epitaph, ..\dat\bogusmon
|
||||||
echo ..\util\makedefs.exe -q
|
echo ..\util\makedefs.exe -s
|
||||||
..\util\makedefs.exe -q
|
..\util\makedefs.exe -s
|
||||||
echo Generating oracles
|
echo Generating quests
|
||||||
echo ..\util\makedefs.exe -h
|
echo ..\util\makedefs.exe -q
|
||||||
..\util\makedefs.exe -h
|
..\util\makedefs.exe -q
|
||||||
echo Generating dungeon.pdf
|
echo Generating oracles
|
||||||
echo ..\util\makedefs.exe -e
|
echo ..\util\makedefs.exe -h
|
||||||
..\util\makedefs.exe -e
|
..\util\makedefs.exe -h
|
||||||
echo chdir ..\build
|
echo Generating dungeon.pdf
|
||||||
chdir ..\build
|
echo ..\util\makedefs.exe -e
|
||||||
copy ..\win\share\tilemap.c ..\win\share\tiletxt.c
|
..\util\makedefs.exe -e
|
||||||
|
echo chdir ..\build
|
||||||
|
chdir ..\build
|
||||||
|
copy ..\win\share\tilemap.c ..\win\share\tiletxt.c
|
||||||
</Command>
|
</Command>
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
@@ -201,40 +204,43 @@ copy ..\win\share\tilemap.c ..\win\share\tiletxt.c
|
|||||||
</Bscmake>
|
</Bscmake>
|
||||||
<PostBuildEvent>
|
<PostBuildEvent>
|
||||||
<Message>Running makedefs</Message>
|
<Message>Running makedefs</Message>
|
||||||
<Command>echo chdir ..\util
|
<Command>echo chdir ..\util
|
||||||
chdir ..\util
|
chdir ..\util
|
||||||
chdir
|
chdir
|
||||||
echo makedefs.exe -v
|
echo makedefs.exe -v
|
||||||
makedefs.exe -v
|
makedefs.exe -v
|
||||||
echo makedefs.exe -o
|
echo makedefs.exe -o
|
||||||
makedefs.exe -o
|
makedefs.exe -o
|
||||||
echo makedefs.exe -p
|
echo makedefs.exe -p
|
||||||
makedefs.exe -p
|
makedefs.exe -p
|
||||||
echo makedefs.exe -m
|
echo makedefs.exe -m
|
||||||
makedefs.exe -m
|
makedefs.exe -m
|
||||||
echo makedefs.exe -z
|
echo makedefs.exe -z
|
||||||
makedefs.exe -z
|
makedefs.exe -z
|
||||||
echo chdir ..\dat
|
echo chdir ..\dat
|
||||||
chdir ..\dat
|
chdir ..\dat
|
||||||
chdir
|
chdir
|
||||||
echo Generating NetHack database
|
echo Generating NetHack database
|
||||||
echo ..\util\makedefs.exe -d
|
echo ..\util\makedefs.exe -d
|
||||||
..\util\makedefs.exe -d
|
..\util\makedefs.exe -d
|
||||||
echo Generating rumors
|
echo Generating rumors
|
||||||
echo ..\util\makedefs.exe -r
|
echo ..\util\makedefs.exe -r
|
||||||
..\util\makedefs.exe -r
|
..\util\makedefs.exe -r
|
||||||
echo Generating quests
|
echo Generating ..\dat\engrave, ..\dat\epitaph, ..\dat\bogusmon
|
||||||
echo ..\util\makedefs.exe -q
|
echo ..\util\makedefs.exe -s
|
||||||
..\util\makedefs.exe -q
|
..\util\makedefs.exe -s
|
||||||
echo Generating oracles
|
echo Generating quests
|
||||||
echo ..\util\makedefs.exe -h
|
echo ..\util\makedefs.exe -q
|
||||||
..\util\makedefs.exe -h
|
..\util\makedefs.exe -q
|
||||||
echo Generating dungeon.pdf
|
echo Generating oracles
|
||||||
echo ..\util\makedefs.exe -e
|
echo ..\util\makedefs.exe -h
|
||||||
..\util\makedefs.exe -e
|
..\util\makedefs.exe -h
|
||||||
echo chdir ..\build
|
echo Generating dungeon.pdf
|
||||||
chdir ..\build
|
echo ..\util\makedefs.exe -e
|
||||||
copy ..\win\share\tilemap.c ..\win\share\tiletxt.c
|
..\util\makedefs.exe -e
|
||||||
|
echo chdir ..\build
|
||||||
|
chdir ..\build
|
||||||
|
copy ..\win\share\tilemap.c ..\win\share\tiletxt.c
|
||||||
</Command>
|
</Command>
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
@@ -282,40 +288,43 @@ copy ..\win\share\tilemap.c ..\win\share\tiletxt.c
|
|||||||
</Bscmake>
|
</Bscmake>
|
||||||
<PostBuildEvent>
|
<PostBuildEvent>
|
||||||
<Message>Running makedefs</Message>
|
<Message>Running makedefs</Message>
|
||||||
<Command>echo chdir ..\util
|
<Command>echo chdir ..\util
|
||||||
chdir ..\util
|
chdir ..\util
|
||||||
chdir
|
chdir
|
||||||
echo makedefs.exe -v
|
echo makedefs.exe -v
|
||||||
makedefs.exe -v
|
makedefs.exe -v
|
||||||
echo makedefs.exe -o
|
echo makedefs.exe -o
|
||||||
makedefs.exe -o
|
makedefs.exe -o
|
||||||
echo makedefs.exe -p
|
echo makedefs.exe -p
|
||||||
makedefs.exe -p
|
makedefs.exe -p
|
||||||
echo makedefs.exe -m
|
echo makedefs.exe -m
|
||||||
makedefs.exe -m
|
makedefs.exe -m
|
||||||
echo makedefs.exe -z
|
echo makedefs.exe -z
|
||||||
makedefs.exe -z
|
makedefs.exe -z
|
||||||
echo chdir ..\dat
|
echo chdir ..\dat
|
||||||
chdir ..\dat
|
chdir ..\dat
|
||||||
chdir
|
chdir
|
||||||
echo Generating NetHack database
|
echo Generating NetHack database
|
||||||
echo ..\util\makedefs.exe -d
|
echo ..\util\makedefs.exe -d
|
||||||
..\util\makedefs.exe -d
|
..\util\makedefs.exe -d
|
||||||
echo Generating rumors
|
echo Generating rumors
|
||||||
echo ..\util\makedefs.exe -r
|
echo ..\util\makedefs.exe -r
|
||||||
..\util\makedefs.exe -r
|
..\util\makedefs.exe -r
|
||||||
echo Generating quests
|
echo Generating ..\dat\engrave, ..\dat\epitaph, ..\dat\bogusmon
|
||||||
echo ..\util\makedefs.exe -q
|
echo ..\util\makedefs.exe -s
|
||||||
..\util\makedefs.exe -q
|
..\util\makedefs.exe -s
|
||||||
echo Generating oracles
|
echo Generating quests
|
||||||
echo ..\util\makedefs.exe -h
|
echo ..\util\makedefs.exe -q
|
||||||
..\util\makedefs.exe -h
|
..\util\makedefs.exe -q
|
||||||
echo Generating dungeon.pdf
|
echo Generating oracles
|
||||||
echo ..\util\makedefs.exe -e
|
echo ..\util\makedefs.exe -h
|
||||||
..\util\makedefs.exe -e
|
..\util\makedefs.exe -h
|
||||||
echo chdir ..\build
|
echo Generating dungeon.pdf
|
||||||
chdir ..\build
|
echo ..\util\makedefs.exe -e
|
||||||
copy ..\win\share\tilemap.c ..\win\share\tiletxt.c
|
..\util\makedefs.exe -e
|
||||||
|
echo chdir ..\build
|
||||||
|
chdir ..\build
|
||||||
|
copy ..\win\share\tilemap.c ..\win\share\tiletxt.c
|
||||||
</Command>
|
</Command>
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
@@ -361,40 +370,43 @@ copy ..\win\share\tilemap.c ..\win\share\tiletxt.c
|
|||||||
</Bscmake>
|
</Bscmake>
|
||||||
<PostBuildEvent>
|
<PostBuildEvent>
|
||||||
<Message>Running makedefs</Message>
|
<Message>Running makedefs</Message>
|
||||||
<Command>echo chdir ..\util
|
<Command>echo chdir ..\util
|
||||||
chdir ..\util
|
chdir ..\util
|
||||||
chdir
|
chdir
|
||||||
echo makedefs.exe -v
|
echo makedefs.exe -v
|
||||||
makedefs.exe -v
|
makedefs.exe -v
|
||||||
echo makedefs.exe -o
|
echo makedefs.exe -o
|
||||||
makedefs.exe -o
|
makedefs.exe -o
|
||||||
echo makedefs.exe -p
|
echo makedefs.exe -p
|
||||||
makedefs.exe -p
|
makedefs.exe -p
|
||||||
echo makedefs.exe -m
|
echo makedefs.exe -m
|
||||||
makedefs.exe -m
|
makedefs.exe -m
|
||||||
echo makedefs.exe -z
|
echo makedefs.exe -z
|
||||||
makedefs.exe -z
|
makedefs.exe -z
|
||||||
echo chdir ..\dat
|
echo chdir ..\dat
|
||||||
chdir ..\dat
|
chdir ..\dat
|
||||||
chdir
|
chdir
|
||||||
echo Generating NetHack database
|
echo Generating NetHack database
|
||||||
echo ..\util\makedefs.exe -d
|
echo ..\util\makedefs.exe -d
|
||||||
..\util\makedefs.exe -d
|
..\util\makedefs.exe -d
|
||||||
echo Generating rumors
|
echo Generating rumors
|
||||||
echo ..\util\makedefs.exe -r
|
echo ..\util\makedefs.exe -r
|
||||||
..\util\makedefs.exe -r
|
..\util\makedefs.exe -r
|
||||||
echo Generating quests
|
echo Generating ..\dat\engrave, ..\dat\epitaph, ..\dat\bogusmon
|
||||||
echo ..\util\makedefs.exe -q
|
echo ..\util\makedefs.exe -s
|
||||||
..\util\makedefs.exe -q
|
..\util\makedefs.exe -s
|
||||||
echo Generating oracles
|
echo Generating quests
|
||||||
echo ..\util\makedefs.exe -h
|
echo ..\util\makedefs.exe -q
|
||||||
..\util\makedefs.exe -h
|
..\util\makedefs.exe -q
|
||||||
echo Generating dungeon.pdf
|
echo Generating oracles
|
||||||
echo ..\util\makedefs.exe -e
|
echo ..\util\makedefs.exe -h
|
||||||
..\util\makedefs.exe -e
|
..\util\makedefs.exe -h
|
||||||
echo chdir ..\build
|
echo Generating dungeon.pdf
|
||||||
chdir ..\build
|
echo ..\util\makedefs.exe -e
|
||||||
copy ..\win\share\tilemap.c ..\win\share\tiletxt.c
|
..\util\makedefs.exe -e
|
||||||
|
echo chdir ..\build
|
||||||
|
chdir ..\build
|
||||||
|
copy ..\win\share\tilemap.c ..\win\share\tiletxt.c
|
||||||
</Command>
|
</Command>
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
@@ -449,4 +461,4 @@ copy ..\win\share\tilemap.c ..\win\share\tiletxt.c
|
|||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -139,6 +139,8 @@ echo decoding splash (splash.uu to splash.bmp)
|
|||||||
..\..\util\uudecode.exe splash.uu
|
..\..\util\uudecode.exe splash.uu
|
||||||
echo decoding tombstone (rip.uu to rip.bmp)
|
echo decoding tombstone (rip.uu to rip.bmp)
|
||||||
..\..\util\uudecode.exe rip.uu
|
..\..\util\uudecode.exe rip.uu
|
||||||
|
echo decoding record (record.uu to record.)
|
||||||
|
..\..\util\uudecode.exe record.uu
|
||||||
chdir ..\..\binary
|
chdir ..\..\binary
|
||||||
</Command>
|
</Command>
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
@@ -200,6 +202,8 @@ echo decoding splash (splash.uu to splash.bmp)
|
|||||||
..\..\util\uudecode.exe splash.uu
|
..\..\util\uudecode.exe splash.uu
|
||||||
echo decoding tombstone (rip.uu to rip.bmp)
|
echo decoding tombstone (rip.uu to rip.bmp)
|
||||||
..\..\util\uudecode.exe rip.uu
|
..\..\util\uudecode.exe rip.uu
|
||||||
|
echo decoding record (record.uu to record.)
|
||||||
|
..\..\util\uudecode.exe record.uu
|
||||||
chdir ..\..\binary
|
chdir ..\..\binary
|
||||||
</Command>
|
</Command>
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
@@ -264,6 +268,8 @@ echo decoding splash (splash.uu to splash.bmp)
|
|||||||
..\..\util\uudecode.exe splash.uu
|
..\..\util\uudecode.exe splash.uu
|
||||||
echo decoding tombstone (rip.uu to rip.bmp)
|
echo decoding tombstone (rip.uu to rip.bmp)
|
||||||
..\..\util\uudecode.exe rip.uu
|
..\..\util\uudecode.exe rip.uu
|
||||||
|
echo decoding record (record.uu to record.)
|
||||||
|
..\..\util\uudecode.exe record.uu
|
||||||
chdir ..\..\binary
|
chdir ..\..\binary
|
||||||
</Command>
|
</Command>
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
@@ -326,6 +332,8 @@ echo decoding splash (splash.uu to splash.bmp)
|
|||||||
..\..\util\uudecode.exe splash.uu
|
..\..\util\uudecode.exe splash.uu
|
||||||
echo decoding tombstone (rip.uu to rip.bmp)
|
echo decoding tombstone (rip.uu to rip.bmp)
|
||||||
..\..\util\uudecode.exe rip.uu
|
..\..\util\uudecode.exe rip.uu
|
||||||
|
echo decoding record (record.uu to record.)
|
||||||
|
..\..\util\uudecode.exe record.uu
|
||||||
chdir ..\..\binary
|
chdir ..\..\binary
|
||||||
</Command>
|
</Command>
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
|
|||||||
Reference in New Issue
Block a user