- display appveyor build as game version

This commit is contained in:
Ilya Shurumov 2021-05-22 15:51:22 +06:00 committed by InspirationByte
parent 6ea7da5332
commit 6d76986a04
2 changed files with 9 additions and 0 deletions

View File

@ -1,7 +1,10 @@
#ifndef VERSION_H #ifndef VERSION_H
#define VERSION_H #define VERSION_H
#ifndef GAME_VERSION_N
#define GAME_VERSION_N "7.0" #define GAME_VERSION_N "7.0"
#endif // GAME_VERSION_N
#define GAME_TITLE "REDRIVER2" #define GAME_TITLE "REDRIVER2"
#define GAME_VERSION GAME_TITLE " " GAME_VERSION_N #define GAME_VERSION GAME_TITLE " " GAME_VERSION_N

View File

@ -11,6 +11,8 @@ PSYQ_DIR = os.getenv("PSYQ_DIR") or "PSY-Q"
GAME_REGION = os.getenv("GAME_REGION") or "NTSC_VERSION" -- or PAL_VERSION GAME_REGION = os.getenv("GAME_REGION") or "NTSC_VERSION" -- or PAL_VERSION
GAME_VERSION = os.getenv("APPVEYOR_BUILD_VERSION") or nil
if not (GAME_REGION == "NTSC_VERSION" or GAME_REGION == "PAL_VERSION") then if not (GAME_REGION == "NTSC_VERSION" or GAME_REGION == "PAL_VERSION") then
error("'GAME_REGION' should be 'NTSC_VERSION' or 'PAL_VERSION'") error("'GAME_REGION' should be 'NTSC_VERSION' or 'PAL_VERSION'")
end end
@ -96,6 +98,10 @@ project "REDRIVER2"
} }
defines { GAME_REGION } defines { GAME_REGION }
if GAME_VERSION ~= nil then
defines{ "GAME_VERSION_N=\""..GAME_VERSION.."\"" }
end
files { files {
"Game/**.h", "Game/**.h",