build both tty NetHack.exe and gui NetHackW.exe
Changes to be committed: modified: include/config.h modified: include/extern.h modified: include/flag.h modified: include/global.h modified: include/ntconf.h modified: include/wintty.h modified: src/cmd.c modified: src/files.c modified: src/options.c modified: sys/share/pcmain.c modified: sys/share/pcsys.c modified: sys/share/pcunix.c modified: sys/winnt/Makefile.gcc modified: sys/winnt/Makefile.msc modified: sys/winnt/nttty.c new file: sys/winnt/stubs.c modified: sys/winnt/winnt.c modified: util/makedefs.c modified: win/tty/wintty.c Adjust the code and the command line Makefile so that you no longer have to choose whether to build the tty version NetHack.exe, or the gui version NetHackW.exe. Both will now be built in a single 'nmake install' pass.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.5 wintty.c $NHDT-Date: 1428828474 2015/04/12 08:47:54 $ $NHDT-Branch: master $:$NHDT-Revision: 1.85 $ */
|
||||
/* NetHack 3.5 wintty.c $NHDT-Date: 1429675638 2015/04/22 04:07:18 $ $NHDT-Branch: win32-x64-working $:$NHDT-Revision: 1.90 $ */
|
||||
/* NetHack 3.5 wintty.c $Date: 2012/01/22 06:27:09 $ $Revision: 1.66 $ */
|
||||
/* Copyright (c) David Cohrs, 1991 */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -111,7 +111,7 @@ struct window_procs tty_procs = {
|
||||
tty_start_screen,
|
||||
tty_end_screen,
|
||||
genl_outrip,
|
||||
#if defined(WIN32CON)
|
||||
#if defined(WIN32)
|
||||
nttty_preference_update,
|
||||
#else
|
||||
genl_preference_update,
|
||||
@@ -2906,7 +2906,7 @@ int dir;
|
||||
{
|
||||
if(dir != WININIT) return;
|
||||
# if defined(WIN32CON)
|
||||
nttty_open();
|
||||
if (!strncmpi(windowprocs.name, "tty", 3)) nttty_open(0);
|
||||
# endif
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user