diff --git a/src_rebuild/Game/version.h b/src_rebuild/Game/version.h index 75e104a4..2410d160 100644 --- a/src_rebuild/Game/version.h +++ b/src_rebuild/Game/version.h @@ -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 diff --git a/src_rebuild/premake5.lua b/src_rebuild/premake5.lua index bbad8058..3b276977 100644 --- a/src_rebuild/premake5.lua +++ b/src_rebuild/premake5.lua @@ -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",