display version and build info at startup (trunk only)

Tested on the unix port; I've updated as many other ports as I can figure
out but they're not tested.  See window.doc for info on the changed banner
lines.  Also adds the ability to override the generic "Unix" port - used now to get
"MacOSX" into the version line instead of "Unix" (so we don't scare people who don't
know what's going on).
This commit is contained in:
keni
2011-10-11 02:37:31 +00:00
parent bd172eb167
commit 4e5e720334
25 changed files with 82 additions and 33 deletions

View File

@@ -6,6 +6,7 @@
#include "hack.h"
#include "dlb.h"
#include "date.h"
#ifdef SHORT_FILENAMES
#include "patchlev.h"
#else
@@ -278,9 +279,9 @@ char *argv[];
error("Your clock is incorrectly set!");
#endif
if (!dlb_init()) {
pline("%s\n%s\n%s\n\nNetHack was unable to open the required file \"%s\".%s",
pline("%s\n%s\n%s\n%s\n\nNetHack was unable to open the required file \"%s\".%s",
COPYRIGHT_BANNER_A, COPYRIGHT_BANNER_B,
COPYRIGHT_BANNER_C, DLBFILE,
COPYRIGHT_BANNER_C, COPYRIGHT_BANNER_D, DLBFILE,
#ifdef WIN32
"\nAre you perhaps trying to run NetHack within a zip utility?");
#else