update version to 0.23

This commit is contained in:
MihailRis 2024-08-05 20:11:37 +03:00
parent bbfbb28349
commit c7ce9a939f
3 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"id": "base",
"title": "Base",
"version": "0.22",
"version": "0.23",
"description": "basic content package"
}

View File

@ -7,7 +7,7 @@
#include <string>
inline constexpr int ENGINE_VERSION_MAJOR = 0;
inline constexpr int ENGINE_VERSION_MINOR = 22;
inline constexpr int ENGINE_VERSION_MINOR = 23;
#ifdef NDEBUG
inline constexpr bool ENGINE_DEBUG_BUILD = false;
@ -15,7 +15,7 @@ inline constexpr bool ENGINE_DEBUG_BUILD = false;
inline constexpr bool ENGINE_DEBUG_BUILD = true;
#endif // NDEBUG
inline const std::string ENGINE_VERSION_STRING = "0.22";
inline const std::string ENGINE_VERSION_STRING = "0.23";
inline constexpr blockid_t BLOCK_AIR = 0;
inline constexpr itemid_t ITEM_EMPTY = 0;

View File

@ -130,9 +130,12 @@ int Window::initialize(DisplaySettings* settings) {
Window::width = settings->width.get();
Window::height = settings->height.get();
std::string title = "VoxelEngine-Cpp v" +
std::string title = "VoxelCore v" +
std::to_string(ENGINE_VERSION_MAJOR) + "." +
std::to_string(ENGINE_VERSION_MINOR);
if (ENGINE_DEBUG_BUILD) {
title += " [debug]";
}
glfwSetErrorCallback(error_callback);
if (glfwInit() == GLFW_FALSE) {