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:
parent
aba216d1dd
commit
9b658cb531
4 changed files with 20 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue