From cc87e284c4086dcb1f4d47c869f4c6bfd81613e7 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Thu, 26 Sep 2024 11:31:24 +0300 Subject: [PATCH] git info in WIP versions title --- src/qt_gui/main_window.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/qt_gui/main_window.cpp b/src/qt_gui/main_window.cpp index f80e3d883..759c6992e 100644 --- a/src/qt_gui/main_window.cpp +++ b/src/qt_gui/main_window.cpp @@ -4,6 +4,7 @@ #include #include +#include #include "about_dialog.h" #include "cheats_patches.h" #include "check_update.h" @@ -44,7 +45,14 @@ bool MainWindow::Init() { GetPhysicalDevices(); // show ui setMinimumSize(350, minimumSizeHint().height()); - setWindowTitle(QString::fromStdString("shadPS4 v" + std::string(Common::VERSION))); + std::string window_title = ""; + if (Common::isRelease) { + window_title = fmt::format("shadPS4 v{}", Common::VERSION); + } else { + window_title = fmt::format("shadPS4 v{} {} {}", Common::VERSION, Common::g_scm_branch, + Common::g_scm_desc); + } + setWindowTitle(QString::fromStdString(window_title)); this->show(); // load game list LoadGameLists();