OpenXcom Forum
Contributions => Programming => Topic started by: 7Saturn on April 30, 2015, 07:04:27 pm
-
Well, maybe something is wrong at my site, or the linux-compiled versions of OpenXcom-nightlies don't show any hint, that they are a nightly-version or the date of the nightly. But the precompiled downloadable windows-version do show the date of the nightly. Is that on purpose or is there a way to get that information into the linux-compiled nightlies of OpenXcom?
-
src/version.h
the automated builder adjusts it automagically.
-
Meaning, I have to enter something there, to have it shown ingame? And the builder of github does that by its own?
-
OK, just for the non-coders, like me: the mentioned file has a line, similar to
#define OPENXCOM_VERSION_SHORT "1.0"
That can be adjusted. Just for housekeeping of the version, one can enter the desired string, e. g. "Nightly 1.0 2015-05-04-18-46". This is shown in the main menu. The other strings can also be seen, in that short moment during start-command and main menu. Usually it's the easiest way, to change the short-parameter, as it will be seen the easiest way.
-
In CMake builds version from git repository are generated automatically with "1.0g${git_revision_of_HEAD}" pattern. This version shown in window caption (if you played in Windowed mode) and main screen.