diff options
author | Poommetee Ketson <poommetee@protonmail.com> | 2017-07-10 15:47:38 +0700 |
---|---|---|
committer | Poommetee Ketson <poommetee@protonmail.com> | 2017-07-11 15:57:52 +0700 |
commit | 5a9eb5ef58288506256998bcbc9c1fc20d4f50d1 (patch) | |
tree | f3897bdeced775dd9df467fd1b210374a7a8524b /editor | |
parent | 159b1fc65f650df0428dbfa9d14e3fd0bcfb94d0 (diff) |
Include Git hash in the engine
Diffstat (limited to 'editor')
-rw-r--r-- | editor/project_manager.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index a3d3d42110..e3f22c833e 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -49,6 +49,7 @@ #include "scene/gui/texture_rect.h" #include "scene/gui/tool_button.h" #include "version.h" +#include "version_hash.gen.h" class NewProjectDialog : public ConfirmationDialog { @@ -1244,7 +1245,10 @@ ProjectManager::ProjectManager() { top_hb->add_child(ccl); top_hb->add_spacer(); l = memnew(Label); - l->set_text("v" VERSION_MKSTRING); + String hash = String(VERSION_HASH); + if (hash.length() != 0) + hash = "." + hash.left(7); + l->set_text("v" VERSION_MKSTRING "" + hash); //l->add_font_override("font",get_font("bold","Fonts")); l->set_align(Label::ALIGN_CENTER); top_hb->add_child(l); |