Browse Source

Add code separators

master
Riyyi 5 years ago
parent
commit
dfbcc0ff0a
  1. 10
      inferno/src/inferno/settings.cpp
  2. 4
      inferno/src/inferno/settings.h

10
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;
}
// -----------------------------------------
}

4
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;

Loading…
Cancel
Save