diff --git a/inferno/src/inferno/settings.cpp b/inferno/src/inferno/settings.cpp index 6e4aceb..963517e 100644 --- a/inferno/src/inferno/settings.cpp +++ b/inferno/src/inferno/settings.cpp @@ -25,7 +25,14 @@ namespace Inferno { this->destroy(); } +// ----------------------------------------- + void Settings::initialize() + { + this->update(); + } + + void Settings::update() { nlohmann::json json = this->load(); @@ -72,4 +79,7 @@ namespace Inferno { return true; } + +// ----------------------------------------- + } diff --git a/inferno/src/inferno/settings.h b/inferno/src/inferno/settings.h index 6b5ac97..d2fd6a7 100644 --- a/inferno/src/inferno/settings.h +++ b/inferno/src/inferno/settings.h @@ -16,7 +16,11 @@ namespace Inferno { Settings(const char* path = "assets/settings.json"); virtual ~Settings(); +// ----------------------------------------- + void initialize(); + void update(); + // void render(); void destroy(); nlohmann::json load() const;