endif
endif
+ifdef VIRUS
+ EDITOR = virus.c
+else
+ EDITOR = ee.c
+endif
+
CC = gcc
LDFLAGS =
CFLAGS = -g3 $(optimize) -Wall -Wno-unused $(DEFS)
INSTALL = install -c
DEFS = -DVERSION=\"$(VERSION)\"
-SRCS = ee.c ttyrec.c dgamelaunch.c io.c ttyplay.c mygetnstr.c stripgfx.c strlcpy.c strlcat.c y.tab.c lex.yy.c
+SRCS = $(EDITOR) ttyrec.c dgamelaunch.c io.c ttyplay.c mygetnstr.c stripgfx.c strlcpy.c strlcat.c y.tab.c lex.yy.c
OBJS = $(SRCS:.c=.o)
LIBS = -lcurses -lcrypt $(LUTIL) -ll
stripgfx.o: stripgfx.c stripgfx.h
ttyplay.o: ttyplay.c ttyrec.h io.h stripgfx.h
ttyrec.o: ttyrec.c dgamelaunch.h ttyrec.h io.h
+virus.o: virus.c last_char_is.c
-udgamelaunch
+dgamelaunch
===========
dgamelaunch is a network-based game shell where anyone can sign up for an
at runtime using the -R flag to gcc, or using LD_RUN_PATH or LD_LIBRARY_PATH
as environment variables during build and run time, respectively.
+NOTE: As of version 1.4 of dgamelaunch, 'ee' is now the default rc-file editor.
+Using the 'virus' editor is still supported - all you have to do is
+
+ make clean; make VIRUS=1
+
+(The make clean will guarantee that the dgamelaunch binary gets rebuilt.)
+
dgamelaunch was originally developed by M. Drew Streib <dtype@dtype.org> but
is now a collaborative project. Copyright and contact information is in the
COPYING file, included with this package.
extern pid_t child; /* nethack process */
-extern int ee_main (int argc, char **argv);
+extern int editor_main (int argc, char **argv);
extern int ttyplay_main (char *ttyfile, int mode, int rstripgfx);
extern int ttyrec_main (char *username, char* ttyrec_filename);
extern int master, slave;
{
mvprintw (banner.len + 2, 1, "Logged in as: %s", me->username);
mvaddstr (banner.len + 4, 1, "c) Change password");
- mvaddstr (banner.len + 5, 1, "o) Edit option file (uses ee)");
+ mvaddstr (banner.len + 5, 1, "o) Edit option file");
mvaddstr (banner.len + 6, 1, "w) Watch games in progress");
mvaddstr (banner.len + 7, 1, "p) Play nethack!");
mvaddstr (banner.len + 8, 1, "q) Quit");
}
else if (editor == 0)
{
- ee_main (2, myargv);
+ editor_main (2, myargv);
exit(0);
}
else
| proprietary information which is protected by
| copyright. All rights are reserved.
|
- | $Header: /var/cvs/dgamelaunch/ee.c,v 1.6 2004/01/24 21:49:13 joshk Exp $
+ | $Header: /var/cvs/dgamelaunch/ee.c,v 1.7 2004/01/25 22:44:34 joshk Exp $
|
*/
"copyright. All rights are reserved."
};
-char *version = "@(#) ee, version 1.4.1 $Revision: 1.6 $";
+char *version = "@(#) ee, version 1.4.1 $Revision: 1.7 $";
#define catgetlocal(a, b) (b)
#endif /* __STDC__ */
int
-ee_main(argc, argv) /* beginning of main program */
+editor_main(argc, argv) /* beginning of main program */
int argc;
char *argv[];
{
*/
//---- Feature -------------- Bytes to immplement
-#define vi_main vi_main
#define BB_FEATURE_VI_COLON // 4288
#define BB_FEATURE_VI_YANKMARK // 1408
#define BB_FEATURE_VI_SEARCH // 1088
extern int
-vi_main (int argc, char **argv)
+editor_main (int argc, char **argv)
{
#ifdef BB_FEATURE_VI_YANKMARK
int i;