From ff26bf411b02a34b27d5883608021cf08f0135f7 Mon Sep 17 00:00:00 2001 From: elad Date: Mon, 15 Jan 2018 20:16:50 +0200 Subject: [PATCH] [GUI] add commit hash to game panel if not master also cleaned up game id --- rpcs3/rpcs3qt/gs_frame.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpcs3/rpcs3qt/gs_frame.cpp b/rpcs3/rpcs3qt/gs_frame.cpp index 729d329ccd..17361b26d8 100644 --- a/rpcs3/rpcs3qt/gs_frame.cpp +++ b/rpcs3/rpcs3qt/gs_frame.cpp @@ -30,10 +30,10 @@ gs_frame::gs_frame(const QString& title, int w, int h, QIcon appIcon, bool disab std::string version = rpcs3::version.to_string(); version = version.substr(0 , version.find_last_of("-")); - //Add branch to version on frame , unless it's master. - if (rpcs3::get_branch().compare("master") != 0 && rpcs3::get_branch().compare("HEAD") != 0) + //Add branch and commit hash to version on frame , unless it's master. + if ((rpcs3::get_branch().compare("master") != 0) && (rpcs3::get_branch().compare("HEAD") != 0)) { - version = version + "-" + rpcs3::get_branch(); + version = version + "-" + rpcs3::version.to_string().substr((rpcs3::version.to_string().find_last_of("-") + 1), 8) + "-" + rpcs3::get_branch(); } m_windowTitle += qstr(" | " + version); @@ -45,7 +45,7 @@ gs_frame::gs_frame(const QString& title, int w, int h, QIcon appIcon, bool disab if (!Emu.GetTitleID().empty()) { - m_windowTitle += qstr(" | [" + Emu.GetTitleID() + ']'); + m_windowTitle += qstr(" [" + Emu.GetTitleID() + ']'); } if (!appIcon.isNull())