mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-06 01:12:33 +00:00
git info in WIP versions title
This commit is contained in:
parent
a40458ef20
commit
cc87e284c4
@ -4,6 +4,7 @@
|
|||||||
#include <QDockWidget>
|
#include <QDockWidget>
|
||||||
#include <QProgressDialog>
|
#include <QProgressDialog>
|
||||||
|
|
||||||
|
#include <common/scm_rev.h>
|
||||||
#include "about_dialog.h"
|
#include "about_dialog.h"
|
||||||
#include "cheats_patches.h"
|
#include "cheats_patches.h"
|
||||||
#include "check_update.h"
|
#include "check_update.h"
|
||||||
@ -44,7 +45,14 @@ bool MainWindow::Init() {
|
|||||||
GetPhysicalDevices();
|
GetPhysicalDevices();
|
||||||
// show ui
|
// show ui
|
||||||
setMinimumSize(350, minimumSizeHint().height());
|
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();
|
this->show();
|
||||||
// load game list
|
// load game list
|
||||||
LoadGameLists();
|
LoadGameLists();
|
||||||
|
Loading…
Reference in New Issue
Block a user