diff --git a/resources/report/js/script.js b/resources/report/js/script.js index cda826cf..55fcab67 100644 --- a/resources/report/js/script.js +++ b/resources/report/js/script.js @@ -1271,6 +1271,15 @@ function initVars() { try { loot.version = JSON.parse(result); + /* The fourth part of the version string is the build number. Trim it. */ + var pos = loot.version.lastIndexOf('.'); + if (loot.version.length > pos + 1) { + document.getElementById('LOOTBuild').textContent = loot.version.substring(pos + 1); + } else { + document.getElementById('LOOTBuild').textContent = 'unknown'; + } + + loot.version = loot.version.substring(0, pos); document.getElementById('LOOTVersion').textContent = loot.version; document.getElementById('firstTimeLootVersion').textContent = loot.version; } catch (e) { diff --git a/resources/report/report.html b/resources/report/report.html index b5386f31..6ed40767 100644 --- a/resources/report/report.html +++ b/resources/report/report.html @@ -505,6 +505,7 @@

LOOT

+

Build

Copyright © 2012–2014 WrinklyNinja

Load order optimisation for Oblivion, Skyrim, Fallout 3 and Fallout: New Vegas.

http://loot.github.io diff --git a/src/gui/handler.cpp b/src/gui/handler.cpp index 0b3d2a44..8f1c5ffd 100644 --- a/src/gui/handler.cpp +++ b/src/gui/handler.cpp @@ -541,7 +541,7 @@ namespace loot { std::string Handler::GetVersion() { BOOST_LOG_TRIVIAL(info) << "Getting LOOT version."; - YAML::Node version(to_string(g_version_major) + "." + to_string(g_version_minor) + "." + to_string(g_version_patch)); + YAML::Node version(to_string(g_version_major) + "." + to_string(g_version_minor) + "." + to_string(g_version_patch) + "." + g_build_revision); return JSON::stringify(version); }