Version and compilation date now shows when starting and on window
caption git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@178 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -23,6 +23,10 @@
|
||||
#ifndef OPTIONS_H
|
||||
#define OPTIONS_H
|
||||
|
||||
#define UQM_MAJOR_VERSION 0
|
||||
#define UQM_MINOR_VERSION 1
|
||||
char UQM_VERSION_STRING[1000];
|
||||
|
||||
enum
|
||||
{
|
||||
MUSIC_3DO,
|
||||
|
||||
@@ -28,8 +28,6 @@
|
||||
#include "libs/vidlib.h"
|
||||
#include "libs/misc.h"
|
||||
|
||||
#define TFB_WINDOW_CAPTION "The Ur-Quan Masters"
|
||||
|
||||
// driver for TFB_InitGraphics
|
||||
enum
|
||||
{
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "rotozoom.h"
|
||||
#include "primitives.h"
|
||||
#include "dcqueue.h"
|
||||
#include "options.h"
|
||||
#include "SDL_thread.h"
|
||||
|
||||
SDL_Surface *SDL_Video;
|
||||
@@ -68,7 +69,7 @@ TFB_InitGraphics (int driver, int flags, int width, int height, int bpp)
|
||||
}
|
||||
|
||||
SDL_EnableUNICODE (1);
|
||||
SDL_WM_SetCaption (TFB_WINDOW_CAPTION, NULL);
|
||||
SDL_WM_SetCaption (UQM_VERSION_STRING, NULL);
|
||||
|
||||
if (flags & TFB_GFXFLAGS_SHOWFPS)
|
||||
ShowFPS = TRUE;
|
||||
|
||||
+4
-2
@@ -79,6 +79,9 @@ main (int argc, char *argv[])
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
|
||||
sprintf (UQM_VERSION_STRING, "The Ur-Quan Masters v%d.%d (compiled %s %s)", UQM_MAJOR_VERSION, UQM_MINOR_VERSION, __DATE__, __TIME__);
|
||||
fprintf (stderr, "%s\n", UQM_VERSION_STRING);
|
||||
|
||||
#ifndef WIN32
|
||||
strcpy (contentdir, "content");
|
||||
#else
|
||||
@@ -164,8 +167,7 @@ main (int argc, char *argv[])
|
||||
printf ("\nOption %s not found!\n", long_options[option_index].name);
|
||||
case '?':
|
||||
case 'h':
|
||||
printf("\nThe Ur-Quan Masters\n");
|
||||
printf("Options:\n");
|
||||
printf("\nOptions:\n");
|
||||
printf(" -r, --res=WIDTHxHEIGHT (default 640x480, others work only with --opengl)\n");
|
||||
printf(" -d, --bpp=BITSPERPIXEL (default 16)\n");
|
||||
printf(" -f, --fullscreen (default off)\n");
|
||||
|
||||
Reference in New Issue
Block a user