Add code separators
This commit is contained in:
@@ -25,7 +25,14 @@ namespace Inferno {
|
|||||||
this->destroy();
|
this->destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------
|
||||||
|
|
||||||
void Settings::initialize()
|
void Settings::initialize()
|
||||||
|
{
|
||||||
|
this->update();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Settings::update()
|
||||||
{
|
{
|
||||||
nlohmann::json json = this->load();
|
nlohmann::json json = this->load();
|
||||||
|
|
||||||
@@ -72,4 +79,7 @@ namespace Inferno {
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,11 @@ namespace Inferno {
|
|||||||
Settings(const char* path = "assets/settings.json");
|
Settings(const char* path = "assets/settings.json");
|
||||||
virtual ~Settings();
|
virtual ~Settings();
|
||||||
|
|
||||||
|
// -----------------------------------------
|
||||||
|
|
||||||
void initialize();
|
void initialize();
|
||||||
|
void update();
|
||||||
|
// void render();
|
||||||
void destroy();
|
void destroy();
|
||||||
|
|
||||||
nlohmann::json load() const;
|
nlohmann::json load() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user