Browse Source

Revert "UI: Remove bitness strings"

This reverts commit 64d4ae0106ff9c61978bdb7b55dc35679edb5a13.
Ryan Foster 2 years ago
parent
commit
60139cbdfe
2 changed files with 12 additions and 1 deletions
  1. 5 0
      UI/obs-app.cpp
  2. 7 1
      UI/window-basic-about.cpp

+ 5 - 0
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)";

+ 7 - 1
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"));