mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
Use ResourcePath for referencing texts and json's
This commit is contained in:
@ -120,7 +120,7 @@ TEST(MapManager, DrawTerrain_View)
|
||||
// Validate edit manager
|
||||
auto editManager = map->getEditManager();
|
||||
CRandomGenerator gen;
|
||||
const JsonNode viewNode(ResourcePath("test/terrainViewMappings", EResType::TEXT));
|
||||
const JsonNode viewNode(JsonPath::builtin("test/terrainViewMappings"));
|
||||
const auto & mappingsNode = viewNode["mappings"].Vector();
|
||||
for (const auto & node : mappingsNode)
|
||||
{
|
||||
|
Reference in New Issue
Block a user