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:
@@ -55,6 +55,7 @@
|
||||
#else
|
||||
#include "patchlevel.h"
|
||||
#endif
|
||||
#include "date.h"
|
||||
|
||||
#ifndef NO_SIGNAL
|
||||
#include <signal.h>
|
||||
@@ -995,6 +996,7 @@ char** argv;
|
||||
COPYRIGHT_BANNER_A,
|
||||
COPYRIGHT_BANNER_B,
|
||||
COPYRIGHT_BANNER_C,
|
||||
COPYRIGHT_BANNER_D,
|
||||
"",
|
||||
"",
|
||||
0
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
#include "hack.h"
|
||||
#include "dlb.h"
|
||||
#include "date.h"
|
||||
#ifdef SHORT_FILENAMES
|
||||
#include "patchlev.h"
|
||||
#else
|
||||
@@ -351,6 +352,7 @@ char** argv;
|
||||
tty_putstr(BASE_WINDOW, 0, COPYRIGHT_BANNER_A);
|
||||
tty_putstr(BASE_WINDOW, 0, COPYRIGHT_BANNER_B);
|
||||
tty_putstr(BASE_WINDOW, 0, COPYRIGHT_BANNER_C);
|
||||
tty_putstr(BASE_WINDOW, 0, COPYRIGHT_BANNER_D);
|
||||
tty_putstr(BASE_WINDOW, 0, "");
|
||||
tty_display_nhwindow(BASE_WINDOW, FALSE);
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "winMS.h"
|
||||
#include <commdlg.h>
|
||||
#include "date.h"
|
||||
#include "patchlevel.h"
|
||||
#include "resource.h"
|
||||
#include "mhmsg.h"
|
||||
@@ -986,7 +987,8 @@ LRESULT CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
NH_A2W(
|
||||
COPYRIGHT_BANNER_A "\n"
|
||||
COPYRIGHT_BANNER_B "\n"
|
||||
COPYRIGHT_BANNER_C,
|
||||
COPYRIGHT_BANNER_C "\n"
|
||||
COPYRIGHT_BANNER_D,
|
||||
wbuf,
|
||||
BUFSZ
|
||||
) );
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "mhsplash.h"
|
||||
#include "mhmsg.h"
|
||||
#include "mhfont.h"
|
||||
#include "date.h"
|
||||
#include "patchlevel.h"
|
||||
#include "dlb.h"
|
||||
|
||||
@@ -85,8 +86,8 @@ void mswin_display_splash_window (BOOL show_ver)
|
||||
clientrt.right - 2 * SPLASH_OFFSET_X, controlrt.bottom, TRUE);
|
||||
|
||||
/* Fill the text control */
|
||||
Sprintf (buf, "%s\r\n%s\r\n%s\r\n\r\n", COPYRIGHT_BANNER_A, COPYRIGHT_BANNER_B,
|
||||
COPYRIGHT_BANNER_C);
|
||||
Sprintf (buf, "%s\r\n%s\r\n%s\r\n%s\r\n\r\n", COPYRIGHT_BANNER_A, COPYRIGHT_BANNER_B,
|
||||
COPYRIGHT_BANNER_C, COPYRIGHT_BANNER_D);
|
||||
strsize = strlen(buf);
|
||||
|
||||
if (show_ver) {
|
||||
|
||||
Reference in New Issue
Block a user