qt: Display architecture information in About box

This commit is contained in:
Cacodemon345
2022-12-29 00:50:50 +06:00
committed by GitHub
parent 374df8e78a
commit 676569dfb2

View File

@@ -75,6 +75,7 @@ extern int qt_nvr_save(void);
#include <QScreen>
#include <QString>
#include <QDir>
#include <QSysInfo>
#if QT_CONFIG(vulkan)
# include <QVulkanInstance>
# include <QVulkanFunctions>
@@ -2098,6 +2099,7 @@ MainWindow::on_actionAbout_86Box_triggered()
#ifdef EMU_GIT_HASH
githash = QString(" [%1]").arg(EMU_GIT_HASH);
#endif
githash.append(QString(" [%1]").arg(QSysInfo::buildCpuArchitecture());
msgBox.setText(QString("<b>%3%1%2</b>").arg(EMU_VERSION_FULL, githash, tr("86Box v")));
msgBox.setInformativeText(tr("An emulator of old computers\n\nAuthors: Sarah Walker, Miran Grca, Fred N. van Kempen (waltje), SA1988, Tiseno100, reenigne, leilei, JohnElliott, greatpsycho, and others.\n\nReleased under the GNU General Public License version 2 or later. See LICENSE for more information."));
msgBox.setWindowTitle("About 86Box");