(Android) Appended the Android version code to the version on the main menu

This commit is contained in:
Leon Styhre 2024-02-25 22:46:14 +01:00
parent 36bab144ba
commit aeacf941fb

View file

@ -2102,8 +2102,13 @@ void GuiMenu::addVersionInfo()
#if defined(IS_PRERELEASE) #if defined(IS_PRERELEASE)
mVersion.setText(applicationName + " " + Utils::String::toUpper(PROGRAM_VERSION_STRING) + mVersion.setText(applicationName + " " + Utils::String::toUpper(PROGRAM_VERSION_STRING) +
" (Built " + __DATE__ + ")"); " (Built " + __DATE__ + ")");
#else
#if defined(__ANDROID__)
mVersion.setText(applicationName + " " + Utils::String::toUpper(PROGRAM_VERSION_STRING) + "-" +
std::to_string(ANDROID_VERSION_CODE));
#else #else
mVersion.setText(applicationName + " " + Utils::String::toUpper(PROGRAM_VERSION_STRING)); mVersion.setText(applicationName + " " + Utils::String::toUpper(PROGRAM_VERSION_STRING));
#endif
#endif #endif
mVersion.setHorizontalAlignment(ALIGN_CENTER); mVersion.setHorizontalAlignment(ALIGN_CENTER);