From dfbcc0ff0a9434ab80303c3cb4c87a4532eca8bc Mon Sep 17 00:00:00 2001 From: Riyyi Date: Sat, 21 Dec 2019 14:55:33 +0100 Subject: [PATCH] Add code separators --- inferno/src/inferno/settings.cpp | 10 ++++++++++ inferno/src/inferno/settings.h | 4 ++++ 2 files changed, 14 insertions(+) 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;