diff options
author | rtk0c <[email protected]> | 2022-11-25 17:06:58 -0800 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-11-25 17:06:58 -0800 |
commit | a0ddfdbcbc6336685362343518770f7bdefd10fe (patch) | |
tree | eeee6982bca066b2286ef266c51fdc8ffaf8f9e0 /source/30-game/main.cpp | |
parent | 01c98830affd1189ab2b227d685f10f5dc8b6ca7 (diff) |
Changeset: 91 Basic logging infrastructure
Diffstat (limited to 'source/30-game/main.cpp')
-rw-r--r-- | source/30-game/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/30-game/main.cpp b/source/30-game/main.cpp index 59d6fea..55d2586 100644 --- a/source/30-game/main.cpp +++ b/source/30-game/main.cpp @@ -6,6 +6,7 @@ #include "Input.hpp" #include "Ires.hpp" #include "Level.hpp" +#include "Log.hpp" #include "Material.hpp" #include "Shader.hpp" @@ -124,6 +125,11 @@ fs::path GetEnvVar(const char* name, const char* backup) { int main(int argc, char* argv[]) { using namespace Tags; +#if BRUSSEL_DEV_ENV + Log::gDefaultBuffer.messages.resize(1024); + Log::gDefaultBufferId = Log::RegisterBuffer(Log::gDefaultBuffer); +#endif + constexpr auto kOpenGLDebug = "opengl-debug"; constexpr auto kImGuiBackend = "imgui-backend"; constexpr auto kGameDataDir = "game-data-directory"; |