mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-25 11:52:32 +01:00
- display appveyor build as game version
This commit is contained in:
parent
6ea7da5332
commit
6d76986a04
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
@ -97,6 +99,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",
|
||||||
"Game/**.c"
|
"Game/**.c"
|
||||||
|
Loading…
Reference in New Issue
Block a user