From 52e6d34de3716c663d6adceef7d9720a000ea6c9 Mon Sep 17 00:00:00 2001 From: Xavier Mitault Date: Sat, 4 Nov 2023 00:47:48 +0000 Subject: [PATCH] GAME: Add call path resolver PATCH --- src/Game/ResourcesManager.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Game/ResourcesManager.hpp b/src/Game/ResourcesManager.hpp index fa1dcfc5..bc8d0190 100644 --- a/src/Game/ResourcesManager.hpp +++ b/src/Game/ResourcesManager.hpp @@ -4,6 +4,7 @@ #include #include "B-luga/Json.hpp" #include "B-luga/Logger.hpp" +#include "B-luga/PathResolver.hpp" #include "ResourcesManager.hpp" #include "boost/filesystem.hpp" @@ -37,14 +38,14 @@ class ResourcesManager { if (!init) { for (const auto &path : paths) { - Json::getInstance().registerJsonFile(ResourcesManager::convertPath(path)); + Json::getInstance().registerJsonFile(path); } init = true; } if (paths.size() <= static_cast(type)) { return ""; } - return ResourcesManager::convertPath(paths[static_cast(type)]); + return paths[static_cast(type)]; } /** @@ -66,6 +67,7 @@ class ResourcesManager { getRessourcePath() = ResourcesManager::getRessourcePathNormal(path_tmp.string()); #endif Logger::info("RESOURCE_MANAGER: Path Assets: " + getRessourcePath()); + PathResolver::setResolver(ResourcesManager::convertPath); } /**