From ff93f760dd50f078779bdabcd41626a45bea6548 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 25 Sep 2019 16:50:02 -0400 Subject: created config class --- src/main.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 5f39d95..814a2d4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -21,6 +21,7 @@ #define GLEW_STATIC #define SOL_ALL_SAFETIES_ON = 1 +#include "config.hpp" #include "engine.hpp" #include @@ -42,9 +43,21 @@ int main([[maybe_unused]] int argc, [[maybe_unused]] char *argv[]) Engine engine; engine.init(); + //Config config; + //config.add("screenWidth"); + //config.add("screenHeight"); + //config.add("title"); + //config.load(); + //std::cout << *config.get("screenWidth") << std::endl; + // Go go go! engine.run(); + //config.set("screenWidth", 10000); + //config.set("screenHeight", 481); + //config.set("title", "gamEdevvv2"); + //config.save(); + return 0; } -- cgit v1.2.3