summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2026-07-29 13:23:16 +1200
committerGitHub <noreply@github.com>2026-07-29 13:23:16 +1200
commitbc6688c0aa1eb2e456a43637b7d24d33ec655cb6 (patch)
tree1d75966b2a1790a979368186cf124474f469cbdf /Source/Core/DolphinQt
parentd742aa8b4c4d052f7dceaa39022b1fe3996f1781 (diff)
parentd7615aa0b03b0be5991766195733908f8ad01204 (diff)
Merge pull request #14752 from JoshuaVandaele/about-sdl
AboutDialog: Report the SDL version being used
Diffstat (limited to 'Source/Core/DolphinQt')
-rw-r--r--Source/Core/DolphinQt/AboutDialog.cpp11
-rw-r--r--Source/Core/DolphinQt/CMakeLists.txt1
2 files changed, 11 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/AboutDialog.cpp b/Source/Core/DolphinQt/AboutDialog.cpp
index 2736fcf65b..0326d9888f 100644
--- a/Source/Core/DolphinQt/AboutDialog.cpp
+++ b/Source/Core/DolphinQt/AboutDialog.cpp
@@ -7,6 +7,7 @@
#include <QTextEdit>
#include <QVBoxLayout>
#include <QtGlobal>
+#include <SDL3/SDL_version.h>
#include "Common/Version.h"
@@ -26,6 +27,12 @@ AboutDialog::AboutDialog(QWidget* parent) : QDialog(parent)
tr("%1 commit(s) ahead of %2").arg(commits_ahead).arg(QStringLiteral("master")));
}
+ const int sdl_version = SDL_GetVersion();
+ QString sdl_str = QString::fromStdString("%1.%2.%3")
+ .arg(SDL_VERSIONNUM_MAJOR(sdl_version))
+ .arg(SDL_VERSIONNUM_MINOR(sdl_version))
+ .arg(SDL_VERSIONNUM_MICRO(sdl_version));
+
const QString text =
QStringLiteral(R"(
<p style='font-size:38pt; font-weight:400;'>Dolphin</p>
@@ -35,7 +42,8 @@ AboutDialog::AboutDialog(QWidget* parent) : QDialog(parent)
<p style='font-size: small;'>
%BRANCH%<br>
%REVISION%<br><br>
-%QT_VERSION%
+%QT_VERSION%<br>
+%SDL_VERSION%
</p>
<p>
@@ -64,6 +72,7 @@ AboutDialog::AboutDialog(QWidget* parent) : QDialog(parent)
tr("Revision: %1").arg(QString::fromUtf8(Common::GetScmRevGitStr().c_str())))
.replace(QStringLiteral("%QT_VERSION%"),
tr("Using Qt %1").arg(QStringLiteral(QT_VERSION_STR)))
+ .replace(QStringLiteral("%SDL_VERSION%"), tr("Using SDL %1").arg(sdl_str))
.replace(QStringLiteral("%CHECK_FOR_UPDATES%"), tr("Check for updates"))
.replace(QStringLiteral("%ABOUT_DOLPHIN%"),
// i18n: The word "free" in the standard phrase "free and open source"
diff --git a/Source/Core/DolphinQt/CMakeLists.txt b/Source/Core/DolphinQt/CMakeLists.txt
index 2e02eda5c3..ddfe35cb6d 100644
--- a/Source/Core/DolphinQt/CMakeLists.txt
+++ b/Source/Core/DolphinQt/CMakeLists.txt
@@ -458,6 +458,7 @@ PRIVATE
uicommon
imgui
implot
+ SDL3::SDL3
)
if (NEED_QT_GUI_PRIVATE_COMPONENT)