diff options
author | Didier Raboud <odyx@debian.org> | 2012-12-27 17:10:45 +0100 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2012-12-27 17:12:42 +0100 |
commit | e62996858b2ce2be322eae55f86b4b0ad7172a08 (patch) | |
tree | feeac577935c7186de2a12afb04ecf748efc4ffe /src/common | |
parent | b046c33206f3843164441c62d0bfab10725c8f28 (diff) | |
download | colobot-e62996858b2ce2be322eae55f86b4b0ad7172a08.tar.gz colobot-e62996858b2ce2be322eae55f86b4b0ad7172a08.tar.bz2 colobot-e62996858b2ce2be322eae55f86b4b0ad7172a08.zip |
Create a central version
Make it 0.1.0~pre-alpha for now.
- Add it to runtime program
- Add it to -help option
- Add it to manpage
- Update translations
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/config.h.cmake | 4 | ||||
-rw-r--r-- | src/common/restext.cpp | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/common/config.h.cmake b/src/common/config.h.cmake index dd280a3..022bb69 100644 --- a/src/common/config.h.cmake +++ b/src/common/config.h.cmake @@ -8,6 +8,10 @@ #cmakedefine USE_GLEW @USE_GLEW@ #cmakedefine GLEW_STATIC +#define COLOBOT_VERSION "@COLOBOT_VERSION_FULL@" +#define COLOBOT_CODENAME "@COLOBOT_VERSION_CODENAME@" +#define COLOBOT_FULLNAME "Colobot @COLOBOT_VERSION_CODENAME@" + #define COLOBOT_DEFAULT_DATADIR "@COLOBOT_INSTALL_DATA_DIR@" #define COLOBOT_I18N_DIR "@COLOBOT_INSTALL_I18N_DIR@" diff --git a/src/common/restext.cpp b/src/common/restext.cpp index da06131..4c56ae5 100644 --- a/src/common/restext.cpp +++ b/src/common/restext.cpp @@ -17,6 +17,8 @@ #include "common/restext.h" +#include "common/config.h" + #include "common/global.h" #include "common/event.h" #include "common/logger.h" @@ -39,7 +41,7 @@ const char* stringsCbot[TX_MAX] = { nullptr }; void InitializeRestext() { - stringsText[RT_VERSION_ID] = "Colobot Gold"; + stringsText[RT_VERSION_ID] = COLOBOT_FULLNAME; stringsText[RT_DISINFO_TITLE] = "SatCom"; stringsText[RT_WINDOW_MAXIMIZED] = "Maximize"; |