diff options
author | Simon Howard | 2008-09-27 02:15:33 +0000 |
---|---|---|
committer | Simon Howard | 2008-09-27 02:15:33 +0000 |
commit | 013dc015d160e5090579f75f4b8a9b3d5acb7b52 (patch) | |
tree | 746d224cc7eadc0e4b19f742257226dd959354f7 /src/i_system.c | |
parent | c33d1935292af81142783137e09dec828df298bc (diff) | |
download | chocolate-doom-013dc015d160e5090579f75f4b8a9b3d5acb7b52.tar.gz chocolate-doom-013dc015d160e5090579f75f4b8a9b3d5acb7b52.tar.bz2 chocolate-doom-013dc015d160e5090579f75f4b8a9b3d5acb7b52.zip |
Split out startup banner code into common code; display copyright notice
in Heretic.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1295
Diffstat (limited to 'src/i_system.c')
-rw-r--r-- | src/i_system.c | 52 |
1 files changed, 40 insertions, 12 deletions
diff --git a/src/i_system.c b/src/i_system.c index 034d831a..77c06436 100644 --- a/src/i_system.c +++ b/src/i_system.c @@ -38,6 +38,8 @@ #include <unistd.h> #endif +#include "config.h" + #include "deh_str.h" #include "doomtype.h" #include "m_argv.h" @@ -119,6 +121,44 @@ byte *I_ZoneBase (int *size) return zonemem; } +void I_PrintBanner(char *msg) +{ + int i; + int spaces = 35 - (strlen(msg) / 2); + + for (i=0; i<spaces; ++i) + putchar(' '); + + puts(msg); +} + +void I_PrintDivider(void) +{ + int i; + + for (i=0; i<75; ++i) + { + putchar('='); + } + + putchar('\n'); +} + +void I_PrintStartupBanner(char *gamedescription) +{ + I_PrintDivider(); + I_PrintBanner(gamedescription); + I_PrintDivider(); + + printf( + " " PACKAGE_NAME " is free software, covered by the GNU General Public\n" + " License. There is NO warranty; not even for MERCHANTABILITY or FITNESS\n" + " FOR A PARTICULAR PURPOSE. You are welcome to change and distribute\n" + " copies under certain conditions. See the source for more information.\n"); + + I_PrintDivider(); +} + // // I_ConsoleStdout // @@ -215,7 +255,6 @@ void I_WaitVBL(int count) // // I_Error // -extern boolean demorecording; static boolean already_quitting = false; @@ -256,17 +295,6 @@ void I_Error (char *error, ...) entry = entry->next; } - /* - if (demorecording) - { - G_CheckDemoStatus(); - } - - D_QuitNetGame (); - I_ShutdownGraphics(); - S_Shutdown(); - */ - #ifdef _WIN32 // On Windows, pop up a dialog box with the error message. { |