mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 02:12:43 +01:00
- display appveyor build as game version
This commit is contained in:
parent
6ea7da5332
commit
6d76986a04
@ -1,7 +1,10 @@
|
||||
#ifndef VERSION_H
|
||||
#define VERSION_H
|
||||
|
||||
#ifndef GAME_VERSION_N
|
||||
#define GAME_VERSION_N "7.0"
|
||||
#endif // GAME_VERSION_N
|
||||
|
||||
#define GAME_TITLE "REDRIVER2"
|
||||
#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_VERSION = os.getenv("APPVEYOR_BUILD_VERSION") or nil
|
||||
|
||||
if not (GAME_REGION == "NTSC_VERSION" or GAME_REGION == "PAL_VERSION") then
|
||||
error("'GAME_REGION' should be 'NTSC_VERSION' or 'PAL_VERSION'")
|
||||
end
|
||||
@ -96,6 +98,10 @@ project "REDRIVER2"
|
||||
}
|
||||
|
||||
defines { GAME_REGION }
|
||||
|
||||
if GAME_VERSION ~= nil then
|
||||
defines{ "GAME_VERSION_N=\""..GAME_VERSION.."\"" }
|
||||
end
|
||||
|
||||
files {
|
||||
"Game/**.h",
|
||||
|
Loading…
Reference in New Issue
Block a user