Merge pull request #370 from tomaz82/build_date

Show build date and time when starting ES with --debug
This commit is contained in:
Jools Wills 2018-02-08 19:49:17 +00:00 committed by GitHub
commit e32ba93785
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -464,9 +464,11 @@ void GuiMenu::openQuitMenu()
void GuiMenu::addVersionInfo()
{
std::string buildDate = (Settings::getInstance()->getBool("Debug") ? std::string( " (" + Utils::String::toUpper(PROGRAM_BUILT_STRING) + ")") : (""));
mVersion.setFont(Font::get(FONT_SIZE_SMALL));
mVersion.setColor(0x5E5E5EFF);
mVersion.setText("EMULATIONSTATION V" + Utils::String::toUpper(PROGRAM_VERSION_STRING));
mVersion.setText("EMULATIONSTATION V" + Utils::String::toUpper(PROGRAM_VERSION_STRING) + buildDate);
mVersion.setHorizontalAlignment(ALIGN_CENTER);
addChild(&mVersion);
}