diff --git a/assets/Json/terminator.json b/assets/Json/terminatorData.json similarity index 100% rename from assets/Json/terminator.json rename to assets/Json/terminatorData.json diff --git a/src/Game/ResourcesManager.hpp b/src/Game/ResourcesManager.hpp index a00b163f..36fa27c6 100644 --- a/src/Game/ResourcesManager.hpp +++ b/src/Game/ResourcesManager.hpp @@ -2,6 +2,7 @@ #include #include +#include "B-luga/Json.hpp" #include "B-luga/Logger.hpp" #include "ResourcesManager.hpp" #include "boost/filesystem.hpp" @@ -27,6 +28,14 @@ class ResourcesManager { public: static std::string getPathByJsonType(JsonType type) { + static bool init = false; + + if (!init) { + for (const auto &path : paths) { + Json::getInstance().registerJsonFile(ResourcesManager::convertPath(path)); + } + init = true; + } if (paths.size() <= static_cast(type)) { return ""; }