#SYSSRC = ../sys/be/bemain.c ../sys/share/unixtty.c ../sys/share/ioctl.c
#SYSOBJ = bemain.o unixtty.o ioctl.o
+JSRC = ../japanese/jconj.c ../japanese/jlib.c
+JOBJ = jconj.o jlib.o
# if you are using gcc as your compiler:
# uncomment the CC definition below if it's not in your environment
files.c fountain.c hack.c hacklib.c invent.c light.c lock.c \
mail.c makemon.c mapglyph.c mcastu.c mhitm.c mhitu.c minion.c \
mklev.c mkmap.c \
- mkmaze.c mkobj.c mkroom.c mon.c mondata.c monmove.c monst.c \
- mplayer.c mthrowu.c muse.c music.c o_init.c objects.c objnam.c \
+ mkmaze.c mkobj.c mkroom.c mon.c mondata.c monmove.c monstj.c \
+ mplayer.c mthrowu.c muse.c music.c o_init.c objectsj.c objnam.c \
options.c pager.c pickup.c pline.c polyself.c potion.c pray.c \
priest.c quest.c questpgr.c read.c rect.c region.c restore.c rip.c \
rnd.c role.c rumors.c save.c shk.c shknam.c sit.c sounds.c sp_lev.c \
CHAINOBJ=wc_chainin.o wc_chainout.o wc_trace.o
# .c files for this version (for date.h)
-VERSOURCES = $(HACKCSRC) $(SYSSRC) $(WINSRC) $(CHAINSRC) $(GENCSRC)
+VERSOURCES = $(HACKCSRC) $(SYSSRC) $(JSRC) $(WINSRC) $(CHAINSRC) $(GENCSRC)
# .c files for all versions using this Makefile (for lint and tags)
-CSOURCES = $(HACKCSRC) $(SYSCSRC) $(WINCSRC) $(CHAINSRC) $(GENCSRC)
+CSOURCES = $(HACKCSRC) $(SYSCSRC) $(JSRC) $(WINCSRC) $(CHAINSRC) $(GENCSRC)
# all .h files except date.h, onames.h, pm.h, and vis_tab.h which would
# cause dependency loops if run through "make depend"
# and dgn_comp.h, dgn_file.h, lev_comp.h, special level & dungeon files.
#
-HACKINCL = align.h amiconf.h artifact.h artilist.h attrib.h beconf.h botl.h \
+HACKINCL = align.h amiconf.h artifact.h artilistj.h attrib.h beconf.h botl.h \
color.h config.h config1.h context.h coord.h decl.h def_os2.h \
display.h dlb.h dungeon.h engrave.h extern.h flag.h func_tab.h \
global.h hack.h lev.h lint.h macconf.h mextra.h mfndpos.h micro.h \
# the following .o's _must_ be made before any others (for makedefs)
FIRSTOBJ = monst.o objects.o
-HOBJ = $(FIRSTOBJ) allmain.o alloc.o apply.o artifact.o attrib.o ball.o \
+HOBJ = monstj.o objectsj.o allmain.o alloc.o apply.o artifact.o attrib.o ball.o \
bones.o botl.o cmd.o dbridge.o decl.o detect.o dig.o display.o dlb.o \
do.o do_name.o do_wear.o dog.o dogmove.o dokick.o dothrow.o \
drawing.o dungeon.o eat.o end.o engrave.o exper.o explode.o \
steal.o steed.o teleport.o timeout.o topten.o track.o trap.o u_init.o \
uhitm.o vault.o vision.o vis_tab.o weapon.o were.o wield.o windows.o \
wizard.o worm.o worn.o write.o zap.o \
- $(REGEXOBJ) $(RANDOBJ) $(SYSOBJ) $(WINOBJ) $(HINTOBJ) version.o
+ $(REGEXOBJ) $(RANDOBJ) $(JOBJ) $(SYSOBJ) $(WINOBJ) $(HINTOBJ) version.o
# the .o files from the HACKCSRC, SYSSRC, and WINSRC lists
$(GAME): $(SYSTEM)
o_init.o: o_init.c $(HACK_H) ../include/lev.h
objects.o: objects.c $(CONFIG_H) ../include/obj.h ../include/objclass.h \
../include/prop.h ../include/skills.h ../include/color.h
+objectsj.o: objectsj.c $(CONFIG_H) ../include/obj.h ../include/objclass.h \
+ ../include/prop.h ../include/skills.h ../include/color.h
objnam.o: objnam.c $(HACK_H)
options.o: options.c $(CONFIG_H) ../include/objclass.h ../include/flag.h \
$(HACK_H) ../include/tcap.h
worn.o: worn.c $(HACK_H)
write.o: write.c $(HACK_H)
zap.o: zap.c $(HACK_H)
+jconj.o: ../japanese/jconj.c ../include/hack.h
+ $(CC) $(CFLAGS) -c ../japanese/jconj.c
+jlib.o: ../japanese/jlib.c ../include/hack.h
+ $(CC) $(CFLAGS) -c ../japanese/jlib.c
# DEPENDENCIES MUST END AT END OF FILE
# IF YOU PUT STUFF HERE IT WILL GO AWAY
# see make depend above
#include <fcntl.h>
#endif
+#ifdef XI18N
+#include <X11/Xlocale.h>
+#endif
+
#if !defined(_BULL_SOURCE) && !defined(__sgi) && !defined(_M_UNIX)
#if !defined(SUNOS4) && !(defined(ULTRIX) && defined(__GNUC__))
#if defined(POSIX_TYPES) || defined(SVR4) || defined(HPUX)
sys_early_init();
+#ifdef XI18N
+ setlocale(LC_ALL, "");
+#endif
#if defined(__APPLE__)
{
/* special hack to change working directory to a resource fork when
panictrace_setsignals(TRUE);
#endif
#endif
+#if 0 /*JP*/
+ prscore(argc, argv);
+#else
+ setkcode('I');
+ initoptions();
prscore(argc, argv);
+ jputchar('\0'); /* reset */
+#endif
exit(EXIT_SUCCESS);
}
}
#ifdef __linux__
check_linux_console();
#endif
+#if 1 /*JP*/
+ /* Line like "OPTIONS=name:foo-@" may exist in config file.
+ * In this case, need to select random class,
+ * so must call setrandom() before initoptions().
+ */
+ setrandom();
+#endif
initoptions();
#ifdef PANICTRACE
ARGV0 = argv[0]; /* save for possible stack trace */
iflags.news = FALSE; /* in case dorecover() fails */
}
#endif
+/*JP
pline("Restoring save file...");
+*/
+ pline("\83Z\81[\83u\83t\83@\83C\83\8b\82ð\95\9c\8c³\92\86\81D\81D\81D");
mark_synch(); /* flush output */
if (dorecover(fd)) {
resuming = TRUE; /* not starting new game */
wd_message();
if (discover || wizard) {
+/*JP
if (yn("Do you want to keep the save file?") == 'n')
+*/
+ if (yn("\83Z\81[\83u\83t\83@\83C\83\8b\82ð\8ec\82µ\82Ä\82¨\82«\82Ü\82·\82©\81H") == 'n')
(void) delete_savefile();
else {
(void) chmod(fq_save, FCMASK); /* back to readable */
if (wiz_error_flag) {
if (sysopt.wizards && sysopt.wizards[0]) {
char *tmp = build_english_list(sysopt.wizards);
+#if 0 /*JP*/
pline("Only user%s %s may access debug (wizard) mode.",
index(sysopt.wizards, ' ') ? "s" : "", tmp);
+#else
+ pline("\81u%s\81v\82Ì\82Ý\82ª\83f\83o\83b\83O(\83E\83C\83U\81[\83h)\83\82\81[\83h\82ð\8eg\97p\82Å\82«\82é\81D",
+ tmp);
+#endif
free(tmp);
} else
+/*JP
pline("Entering explore/discovery mode instead.");
+*/
+ pline("\82©\82í\82è\82É\94\8c©\83\82\81[\83h\82Ö\88Ú\8ds\82·\82é\81D");
wizard = 0, discover = 1; /* (paranoia) */
} else if (discover)
+/*JP
You("are in non-scoring explore/discovery mode.");
+*/
+ You("\83X\83R\83A\82Ì\8dÚ\82ç\82È\82¢\94\8c©\83\82\81[\83h\82Å\8bN\93®\82µ\82½\81D");
}
/*