diff options
| author | Poommetee Ketson | 2017-07-10 15:47:38 +0700 |
|---|---|---|
| committer | Poommetee Ketson | 2017-07-11 15:57:52 +0700 |
| commit | 5a9eb5ef58288506256998bcbc9c1fc20d4f50d1 (patch) | |
| tree | f3897bdeced775dd9df467fd1b210374a7a8524b /editor/project_manager.cpp | |
| parent | 159b1fc65f650df0428dbfa9d14e3fd0bcfb94d0 (diff) | |
| download | godot-5a9eb5ef58288506256998bcbc9c1fc20d4f50d1.tar.gz godot-5a9eb5ef58288506256998bcbc9c1fc20d4f50d1.tar.zst godot-5a9eb5ef58288506256998bcbc9c1fc20d4f50d1.zip | |
Include Git hash in the engine
Diffstat (limited to 'editor/project_manager.cpp')
| -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 a3d3d4211..e3f22c833 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); |
