1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-17 11:59:28 +00:00

Allow overriding title screen version nuber completely.

This commit is contained in:
fgenesis 2013-06-24 03:09:58 +02:00
commit 9b658cb531
4 changed files with 20 additions and 1 deletions

View file

@ -12,6 +12,9 @@
#define AQUARIA_CUSTOM_BUILD_ID ""
// If defined, this is shown instead of "Aquaria vx.x.x ..." on the title screen.
//#define AQUARIA_OVERRIDE_VERSION_STRING "Aquaria OSE v1.000"
#endif

View file

@ -844,7 +844,13 @@ void loadBitForTexPrecache()
}
void DSQ::setVersionLabelText() {
void DSQ::setVersionLabelText()
{
#ifdef AQUARIA_OVERRIDE_VERSION_STRING
versionLabel->setText(AQUARIA_OVERRIDE_VERSION_STRING);
return;
#endif
std::ostringstream os;
os << "Aquaria";

View file

@ -146,6 +146,9 @@ static void init()
#ifdef AQUARIA_CUSTOM_BUILD_ID
os << AQUARIA_CUSTOM_BUILD_ID;
#endif
#ifdef AQUARIA_OVERRIDE_VERSION_STRING
os << "|" << AQUARIA_OVERRIDE_VERSION_STRING;
#endif
const char *loc = getUsedLocale();
if(*loc)