mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Use q_version.h
This commit is contained in:
parent
c9577629d2
commit
d82eb25487
4 changed files with 8 additions and 16 deletions
|
@ -26,6 +26,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#include "../renderercommon/tr_public.h"
|
||||
#include "../qcommon/tiki.h"
|
||||
#include "../qcommon/localization.h"
|
||||
#include "../qcommon/q_version.h"
|
||||
|
||||
#include "cl_ui.h"
|
||||
|
||||
|
@ -1122,10 +1123,10 @@ getNewConsole
|
|||
====================
|
||||
*/
|
||||
UIFloatingConsole* getNewConsole() {
|
||||
static constexpr char CONSOLE_NAME[] = PRODUCT_NAME " console version " PRODUCT_VERSION;
|
||||
const char* consoleName = va("%s console version %s", PRODUCT_NAME, PRODUCT_VERSION);
|
||||
|
||||
UIFloatingConsole* console = new UIFloatingConsole;
|
||||
console->Create(NULL, getDefaultConsoleRectangle(), CONSOLE_NAME, UWindowColor, UHudColor);
|
||||
console->Create(NULL, getDefaultConsoleRectangle(), consoleName, UWindowColor, UHudColor);
|
||||
console->setConsoleHandler(ConsoleCommandHandler);
|
||||
console->setConsoleBackground(UBlack, 0.8f);
|
||||
console->setShow(false);
|
||||
|
|
|
@ -23,6 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
#include "q_shared.h"
|
||||
#include "qcommon.h"
|
||||
#include "q_version.h"
|
||||
#include <setjmp.h>
|
||||
#ifndef _WIN32
|
||||
#include <netinet/in.h>
|
||||
|
@ -1313,7 +1314,7 @@ void Com_Init( char *commandLine ) {
|
|||
|
||||
iStart = Sys_Milliseconds();
|
||||
|
||||
Com_Printf( "%s %s %s\n", PRODUCT_VERSION_FULL, PLATFORM_STRING, __DATE__ );
|
||||
Com_Printf( "%s %s (extension %s) %s %s\n", PRODUCT_NAME, PRODUCT_VERSION, PRODUCT_EXTENSION, PLATFORM_STRING, PRODUCT_DATE );
|
||||
|
||||
if ( setjmp (abortframe) ) {
|
||||
Sys_Error("Error during initialization");
|
||||
|
|
|
@ -25,19 +25,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "q_version.h"
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define PRODUCT_NAME "OpenMoHAA"
|
||||
|
||||
//
|
||||
// Version display
|
||||
//
|
||||
#define PRODUCT_VERSION_NUMBER_STRING XSTRING(PRODUCT_VERSION_MAJOR) "." XSTRING(PRODUCT_VERSION_MINOR) "." XSTRING(PRODUCT_VERSION_PATCH)
|
||||
#define PRODUCT_VERSION PRODUCT_VERSION_NUMBER_STRING "-" PRODUCT_VERSION_STAGE
|
||||
#define PRODUCT_DATE __DATE__
|
||||
|
||||
#define BASEGAME "main"
|
||||
|
@ -95,11 +87,7 @@ extern "C" {
|
|||
#define HOMEPATH_NAME_MACOSX HOMEPATH_NAME_WIN
|
||||
#endif
|
||||
|
||||
#define PRODUCT_NAME_FULL PRODUCT_NAME " - v" PRODUCT_VERSION " - ext-" PRODUCT_EXTENSION
|
||||
#define PRODUCT_VERSION_FULL PRODUCT_NAME_FULL
|
||||
#define Q3_VERSION PRODUCT_VERSION_FULL
|
||||
|
||||
#define CLIENT_WINDOW_TITLE PRODUCT_NAME_FULL
|
||||
#define CLIENT_WINDOW_TITLE PRODUCT_NAME
|
||||
#define CLIENT_WINDOW_MIN_TITLE PRODUCT_NAME
|
||||
|
||||
#define MAX_TEAMNAME 32
|
||||
|
|
|
@ -20,6 +20,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#include "../qcommon/q_version.h"
|
||||
|
||||
// Setting DEFAULT_BASEDIR to an empty string will make
|
||||
// Sys_DefaultInstallPath() return the current directory instead
|
||||
// This was the usual behavior in Quake III Arena.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue