mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix window title if VC_BUILD_NAME is empty
This commit is contained in:
parent
d8d9e980b6
commit
728e3641ac
1 changed files with 9 additions and 5 deletions
|
|
@ -36,13 +36,17 @@ WindowControl::Result WindowControl::initialize() {
|
|||
if (!title.empty()) {
|
||||
title += " - ";
|
||||
}
|
||||
title += "VoxelCore v" +
|
||||
std::string buildName;
|
||||
#ifdef VC_BUILD_NAME
|
||||
std::string(VC_BUILD_NAME);
|
||||
#else
|
||||
std::to_string(ENGINE_VERSION_MAJOR) + "." +
|
||||
std::to_string(ENGINE_VERSION_MINOR);
|
||||
buildName = VC_BUILD_NAME;
|
||||
#endif
|
||||
title += "VoxelCore v";
|
||||
if (buildName.empty()) {
|
||||
title += std::to_string(ENGINE_VERSION_MAJOR) + "." +
|
||||
std::to_string(ENGINE_VERSION_MINOR);
|
||||
} else {
|
||||
title += buildName;
|
||||
}
|
||||
if (ENGINE_DEBUG_BUILD) {
|
||||
title += " [debug]";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue