From f3579e788d452a49251aa933843ac2f8e9335076 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Mon, 8 Jul 2019 14:51:09 +0200 Subject: [PATCH] Show Dolphin version in render window title This was in DolphinWX but not DolphinQt. It's useful for telling if users who post screenshots have an up-to-date version of Dolphin. The old implementation of this prepended the version in DolphinWX code rather than Core code, but I thought it'd be simpler to do it in Core. --- Source/Core/Core/Core.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/Core.cpp b/Source/Core/Core/Core.cpp index 6dc471736e..1838e01eed 100644 --- a/Source/Core/Core/Core.cpp +++ b/Source/Core/Core/Core.cpp @@ -30,6 +30,7 @@ #include "Common/StringUtil.h" #include "Common/Thread.h" #include "Common/Timer.h" +#include "Common/Version.h" #include "Core/Analytics.h" #include "Core/Boot/Boot.h" @@ -864,7 +865,8 @@ void UpdateTitle() } } - std::string message = StringFromFormat("%s | %s", SSettings.c_str(), SFPS.c_str()); + std::string message = StringFromFormat("%s | %s | %s", Common::scm_rev_str.c_str(), + SSettings.c_str(), SFPS.c_str()); if (SConfig::GetInstance().m_show_active_title) { const std::string& title = SConfig::GetInstance().GetTitleDescription();