Print some build information at startup.

* The platform and the architecture.
* The build date.
* Introduce a version number and print it.
This commit is contained in:
Yamagi 2021-06-07 07:18:48 +02:00
parent e00ee16349
commit 143cb7711c
2 changed files with 6 additions and 11 deletions

View File

@ -32,8 +32,7 @@
#include "shared.h"
#include "crc.h"
#define YQ2VERSION "8.00pre"
#define BASEDIRNAME "baseq2"
#define VKVERSION "1.0"
#ifndef YQ2OSTYPE
#error YQ2OSTYPE should be defined by the build system
@ -47,12 +46,6 @@
#define BUILD_DATE __DATE__
#endif
#ifdef _WIN32
#define CFGDIR "YamagiQ2"
#else
#define CFGDIR ".yq2"
#endif
/* ================================================================== */
typedef struct sizebuf_s

View File

@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "header/local.h"
#define REF_VERSION "Yamagi Quake II Vulkan Refresher (based on vkQuake2 v1.4.3)"
#define REF_VERSION "Yamagi Quake II Vulkan Refresher " VKVERSION " (based on vkQuake2 v1.4.3)"
// world rendered and ready to render 2d elements
static qboolean world_rendered;
@ -1312,7 +1312,9 @@ static qboolean RE_Init( void )
{
R_Printf(PRINT_ALL, "Refresh: " REF_VERSION "\n");
R_Printf(PRINT_ALL, "Client: " YQ2VERSION "\n\n");
R_Printf(PRINT_ALL, "Platform: " YQ2OSTYPE "\n");
R_Printf(PRINT_ALL, "Architecture: " YQ2ARCH "\n");
R_Printf(PRINT_ALL, "Build date: " BUILD_DATE "\n\n");
R_Register();
@ -1623,7 +1625,7 @@ RE_InitContext(void *win)
}
/* Window title - set here so we can display renderer name in it */
snprintf(title, sizeof(title), "Yamagi Quake II %s - Vulkan Render", YQ2VERSION);
snprintf(title, sizeof(title), "Yamagi Quake II - Vulkan Render");
SDL_SetWindowTitle(window, title);
// window is ready, initialize Vulkan now