mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-25 03:42:34 +01:00
- embed version information to EXE and print in log file
This commit is contained in:
parent
05dcc49b19
commit
bcba884ef1
@ -1,11 +1,10 @@
|
|||||||
#ifndef VERSION_H
|
|
||||||
#define VERSION_H
|
|
||||||
|
|
||||||
#ifndef GAME_VERSION_N
|
#ifndef GAME_VERSION_N
|
||||||
#define GAME_VERSION_N "7.2"
|
#define GAME_VERSION_N "7.3"
|
||||||
#endif // GAME_VERSION_N
|
#endif
|
||||||
|
|
||||||
|
#ifndef GAME_VERSION_RES
|
||||||
|
#define GAME_VERSION_RES 7,3
|
||||||
|
#endif
|
||||||
|
|
||||||
#define GAME_TITLE "REDRIVER2"
|
#define GAME_TITLE "REDRIVER2"
|
||||||
#define GAME_VERSION GAME_TITLE " " GAME_VERSION_N
|
#define GAME_VERSION GAME_TITLE " " GAME_VERSION_N
|
||||||
|
|
||||||
#endif // VERSION_H
|
|
Binary file not shown.
@ -153,9 +153,12 @@ project "REDRIVER2"
|
|||||||
}
|
}
|
||||||
|
|
||||||
defines { GAME_REGION }
|
defines { GAME_REGION }
|
||||||
|
defines { "BUILD_CONFIGURATION_STRING=\"%{cfg.buildcfg}\"" }
|
||||||
|
|
||||||
if GAME_VERSION ~= nil then
|
if GAME_VERSION ~= nil then
|
||||||
|
local resVersion = string.gsub(GAME_VERSION, "%.", ",")
|
||||||
defines{ "GAME_VERSION_N=\""..GAME_VERSION.."\"" }
|
defines{ "GAME_VERSION_N=\""..GAME_VERSION.."\"" }
|
||||||
|
defines{ "GAME_VERSION_RES="..resVersion.."" }
|
||||||
end
|
end
|
||||||
|
|
||||||
files {
|
files {
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#include "C/loadview.h"
|
#include "C/loadview.h"
|
||||||
#include "C/overlay.h"
|
#include "C/overlay.h"
|
||||||
#include "C/players.h"
|
#include "C/players.h"
|
||||||
|
#include "C/time.h"
|
||||||
|
|
||||||
#include "utils/ini.h"
|
#include "utils/ini.h"
|
||||||
|
|
||||||
@ -27,6 +28,7 @@
|
|||||||
|
|
||||||
#include "PsyX/PsyX_globals.h"
|
#include "PsyX/PsyX_globals.h"
|
||||||
|
|
||||||
|
|
||||||
int(*GPU_printf)(const char *fmt, ...);
|
int(*GPU_printf)(const char *fmt, ...);
|
||||||
|
|
||||||
bool CtrlModifier;
|
bool CtrlModifier;
|
||||||
@ -636,6 +638,10 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
PsyX_Initialise("REDRIVER2", windowWidth, windowHeight, fullScreen);
|
PsyX_Initialise("REDRIVER2", windowWidth, windowHeight, fullScreen);
|
||||||
|
|
||||||
|
char version_info[32];
|
||||||
|
GetTimeStamp(version_info);
|
||||||
|
PsyX_Log_Info("%s %s (%s)\n", GAME_VERSION, version_info, BUILD_CONFIGURATION_STRING);
|
||||||
|
|
||||||
// configure Psy-X CD image reader
|
// configure Psy-X CD image reader
|
||||||
if (cdImageFileName)
|
if (cdImageFileName)
|
||||||
PsyX_CDFS_Init(cdImageFileName, 0, 0);
|
PsyX_CDFS_Init(cdImageFileName, 0, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user