From 9a535d4441429f44d7e312f0479aeabcd7e0e940 Mon Sep 17 00:00:00 2001 From: Tomas Jakobsson Date: Thu, 8 Feb 2018 18:28:39 +0100 Subject: [PATCH] Show build date and time when starting ES with --debug --- es-app/src/guis/GuiMenu.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/es-app/src/guis/GuiMenu.cpp b/es-app/src/guis/GuiMenu.cpp index d5ce19585..86fd9538b 100644 --- a/es-app/src/guis/GuiMenu.cpp +++ b/es-app/src/guis/GuiMenu.cpp @@ -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); }