From 60139cbdfebd36bfa182204cce355f94a5ae1951 Mon Sep 17 00:00:00 2001 From: Ryan Foster Date: Thu, 30 Mar 2023 17:08:30 -0400 Subject: [PATCH] Revert "UI: Remove bitness strings" This reverts commit 64d4ae0106ff9c61978bdb7b55dc35679edb5a13. --- UI/obs-app.cpp | 5 +++++ UI/window-basic-about.cpp | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/UI/obs-app.cpp b/UI/obs-app.cpp index cdd1117e4..6148e2bde 100644 --- a/UI/obs-app.cpp +++ b/UI/obs-app.cpp @@ -1754,6 +1754,11 @@ string OBSApp::GetVersionString(bool platform) const if (platform) { ver << " ("; #ifdef _WIN32 + if (sizeof(void *) == 8) + ver << "64-bit, "; + else + ver << "32-bit, "; + ver << "windows)"; #elif __APPLE__ ver << "mac)"; diff --git a/UI/window-basic-about.cpp b/UI/window-basic-about.cpp index 7142d1062..2bbc216aa 100644 --- a/UI/window-basic-about.cpp +++ b/UI/window-basic-about.cpp @@ -15,8 +15,14 @@ OBSAbout::OBSAbout(QWidget *parent) : QDialog(parent), ui(new Ui::OBSAbout) ui->setupUi(this); + QString bitness; QString ver; + if (sizeof(void *) == 4) + bitness = " (32 bit)"; + else if (sizeof(void *) == 8) + bitness = " (64 bit)"; + #ifdef HAVE_OBSCONFIG_H ver += OBS_VERSION; #else @@ -24,7 +30,7 @@ OBSAbout::OBSAbout(QWidget *parent) : QDialog(parent), ui(new Ui::OBSAbout) LIBOBS_API_PATCH_VER; #endif - ui->version->setText(ver); + ui->version->setText(ver + bitness); ui->contribute->setText(QTStr("About.Contribute"));