Enhanced version string on main menu

This commit is contained in:
XargonWan 2025-02-01 20:58:47 +09:00
parent 9a56464c6b
commit 4b55f361db

View file

@ -2415,12 +2415,11 @@ void GuiMenu::addVersionInfo()
// also check that the line is not empty to ensure valid version information // also check that the line is not empty to ensure valid version information
if (versionFile && std::getline(versionFile, retroDeckVersion) && !retroDeckVersion.empty()) { if (versionFile && std::getline(versionFile, retroDeckVersion) && !retroDeckVersion.empty()) {
LOG(LogInfo) << "RetroDECK version read OK. Version: " + retroDeckVersion; LOG(LogInfo) << "RetroDECK version read OK. Version: " + retroDeckVersion;
mVersion.setText("RetroDECK " + retroDeckVersion);
} else { } else {
LOG(LogInfo) << "Error: Cannot read version from file or file is empty!"; LOG(LogInfo) << "Error: Cannot read version from file or file is empty!";
retroDeckVersion = "UNKNOWN"; retroDeckVersion = "UNKNOWN";
mVersion.setText("RetroDECK " + retroDeckVersion);
} }
mVersion.setText("RetroDECK " + retroDeckVersion + " | ES-DE " + Utils::String::toUpper(PROGRAM_VERSION_STRING));
#endif #endif
mVersion.setHorizontalAlignment(ALIGN_CENTER); mVersion.setHorizontalAlignment(ALIGN_CENTER);