Quick refactor of the config system to make it easier to refactor config.cpp/hpp later.
This commit is contained in:
parent
47f659ae8e
commit
e523aa8b02
29 changed files with 138 additions and 140 deletions
|
|
@ -97,8 +97,8 @@ namespace animation {
|
|||
|
||||
void init() {
|
||||
if(!initialized) {
|
||||
Config animations("assets/animations.json");
|
||||
Config config("assets/config.json");
|
||||
auto animations = settings::get("animations");
|
||||
auto config = settings::get("config");
|
||||
auto& sprites = config["sprites"];
|
||||
|
||||
for(auto& [name, data] : animations.json().items()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue