feat: add Config class

This commit is contained in:
2026-04-24 17:08:06 +08:00
parent 2409734e89
commit 106cc3d398
20 changed files with 465 additions and 154 deletions

View File

@@ -1,5 +1,6 @@
#include <Cubed/debug_collector.hpp>
#include <Cubed/config.hpp>
#include <Cubed/tools/system_info.hpp>
#include <Cubed/tools/cubed_hash.hpp>
@@ -30,7 +31,7 @@ void DebugCollector::init_text() {
.position(0.0f, 100.0f)
.scale(0.8f)
.color(Color::WHITE)
.text("Version: v0.0.1-Debug");
.text("Version: " + Config::get().get<std::string>("version"));
fps_text
.position(0.0f, 50.0f)
.text("FPS: 0");