We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8d9e98 commit 728e364Copy full SHA for 728e364
1 file changed
src/engine/WindowControl.cpp
@@ -36,13 +36,17 @@ WindowControl::Result WindowControl::initialize() {
36
if (!title.empty()) {
37
title += " - ";
38
}
39
- title += "VoxelCore v" +
+ std::string buildName;
40
#ifdef VC_BUILD_NAME
41
- std::string(VC_BUILD_NAME);
42
-#else
43
- std::to_string(ENGINE_VERSION_MAJOR) + "." +
44
- std::to_string(ENGINE_VERSION_MINOR);
+ buildName = VC_BUILD_NAME;
45
#endif
+ title += "VoxelCore v";
+ if (buildName.empty()) {
+ title += std::to_string(ENGINE_VERSION_MAJOR) + "." +
46
+ std::to_string(ENGINE_VERSION_MINOR);
47
+ } else {
48
+ title += buildName;
49
+ }
50
if (ENGINE_DEBUG_BUILD) {
51
title += " [debug]";
52
0 commit comments