ENGINE_VERSION_INDEV replaced with ENGINE_DEBUG_BUILD
This commit is contained in:
+7
-1
@@ -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
@@ -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) {
|
||||||
|
|||||||
@@ -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+
|
||||||
|
|||||||
Reference in New Issue
Block a user