mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Use ResourcePath for referencing texts and json's
This commit is contained in:
@@ -154,9 +154,9 @@ std::unique_ptr<IMapLoader> CMapService::getMapLoader(std::unique_ptr<CInputStre
|
||||
}
|
||||
}
|
||||
|
||||
static JsonNode loadPatches(std::string path)
|
||||
static JsonNode loadPatches(const std::string & path)
|
||||
{
|
||||
JsonNode node = JsonUtils::assembleFromFiles(std::move(path));
|
||||
JsonNode node = JsonUtils::assembleFromFiles(path);
|
||||
for (auto & entry : node.Struct())
|
||||
JsonUtils::validate(entry.second, "vcmi:mapHeader", "patch for " + entry.first);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user