diff options
author | bunnei <bunneidev@gmail.com> | 2021-05-16 20:09:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-16 20:09:54 -0700 |
commit | 0a74d8490ad935e6aed68abfd6f994860d3026ce (patch) | |
tree | f98c5fdd46a058c930731db9c9942fb654a3756a /src/yuzu/main.cpp | |
parent | 440eb840ea18352488bd89e08e88d7ee34aab717 (diff) | |
parent | af69b483902990b1e0d814bcf8531f9a89a2e610 (diff) |
Merge pull request #6326 from Morph1984/fix-version
yuzu/main: Fix version info in logging and about dialog
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r-- | src/yuzu/main.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 2c8649793..1d36cc02d 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -241,14 +241,15 @@ GMainWindow::GMainWindow() ConnectMenuEvents(); ConnectWidgetEvents(); + const auto branch_name = std::string(Common::g_scm_branch); + const auto description = std::string(Common::g_scm_desc); const auto build_id = std::string(Common::g_build_id); - const auto fmt = std::string(Common::g_title_bar_format_idle); - const auto yuzu_build_version = - fmt::format(fmt.empty() ? "yuzu Development Build" : fmt, std::string{}, std::string{}, - std::string{}, std::string{}, std::string{}, build_id); - LOG_INFO(Frontend, "yuzu Version: {} | {}-{}", yuzu_build_version, Common::g_scm_branch, - Common::g_scm_desc); + const auto yuzu_build = fmt::format("yuzu Development Build | {}-{}", branch_name, description); + const auto override_build = fmt::format(std::string(Common::g_title_bar_format_idle), build_id); + const auto yuzu_build_version = override_build.empty() ? yuzu_build : override_build; + + LOG_INFO(Frontend, "yuzu Version: {}", yuzu_build_version); #ifdef ARCHITECTURE_x86_64 const auto& caps = Common::GetCPUCaps(); std::string cpu_string = caps.cpu_string; |