diff --git a/shared/config/config-utils.hpp b/shared/config/config-utils.hpp index 3e72a6ce..45d03353 100644 --- a/shared/config/config-utils.hpp +++ b/shared/config/config-utils.hpp @@ -72,7 +72,7 @@ bool parsejson(ConfigDocument& doc, std::string_view js); /// @brief Returns a path to the persistent data directory for the provided const ModInfo&. /// @param info The const ModInfo& to find a path for. /// @return The path to the directory. -std::string getDataDir(const modloader::ModInfo& info); +std::string getDataDir(modloader::ModInfo const& info); /// @brief Returns a path to the persistent data directory for ID. /// @param id The id to find a path for. diff --git a/src/config/config-utils.cpp b/src/config/config-utils.cpp index 5838a42a..c84ce0e3 100644 --- a/src/config/config-utils.cpp +++ b/src/config/config-utils.cpp @@ -14,7 +14,6 @@ #include "scotland2/shared/loader.hpp" #include "scotland2/shared/modloader.h" - // CONFIG bool readJson = false; @@ -91,7 +90,7 @@ std::string Configuration::getConfigFilePath(const modloader::ModInfo& info) { } static std::optional dataDir; -std::string getDataDir(const CModInfo& info) { +std::string getDataDir(modloader::ModInfo const& info) { if (!dataDir) { dataDir = string_format(PERSISTENT_DIR, modloader_get_application_id()); if (!direxists(*dataDir)) {