ENGINE_VERSION_INDEV replaced with ENGINE_DEBUG_BUILD

This commit is contained in:
MihailRis
2024-05-02 17:26:25 +03:00
parent 5915b811f2
commit 3ac6ad640a
3 changed files with 9 additions and 3 deletions
+7 -1
View File
@@ -7,7 +7,13 @@
inline constexpr int ENGINE_VERSION_MAJOR = 0; inline constexpr int ENGINE_VERSION_MAJOR = 0;
inline constexpr int ENGINE_VERSION_MINOR = 21; inline constexpr int ENGINE_VERSION_MINOR = 21;
inline constexpr bool ENGINE_VERSION_INDEV = true;
#ifdef NDEBUG
inline constexpr bool ENGINE_DEBUG_BUILD = false;
#else
inline constexpr bool ENGINE_DEBUG_BUILD = true;
#endif // NDEBUG
inline const std::string ENGINE_VERSION_STRING = "0.21"; inline const std::string ENGINE_VERSION_STRING = "0.21";
inline constexpr int BLOCK_AIR = 0; inline constexpr int BLOCK_AIR = 0;
+1 -1
View File
@@ -78,7 +78,7 @@ Engine::Engine(EngineSettings& settings, SettingsHandler& settingsHandler, Engin
paths->getResources() paths->getResources()
)); ));
} }
if (ENGINE_VERSION_INDEV) { if (ENGINE_DEBUG_BUILD) {
menus::create_version_label(this); menus::create_version_label(this);
} }
keepAlive(settings.ui.language.observe([=](auto lang) { keepAlive(settings.ui.language.observe([=](auto lang) {
+1 -1
View File
@@ -23,7 +23,7 @@ using namespace gui;
void menus::create_version_label(Engine* engine) { void menus::create_version_label(Engine* engine) {
auto gui = engine->getGUI(); auto gui = engine->getGUI();
auto text = ENGINE_VERSION_STRING+" development build"; auto text = ENGINE_VERSION_STRING+" debug build";
gui->add(guiutil::create( gui->add(guiutil::create(
"<label z-index='1000' color='#FFFFFF80' gravity='bottom-left' margin='4'>" "<label z-index='1000' color='#FFFFFF80' gravity='bottom-left' margin='4'>"
+text+ +text+