mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Use ResourcePath for referencing texts and json's
This commit is contained in:
@@ -51,8 +51,7 @@ int CMapGenerator::getRandomSeed() const
|
||||
|
||||
void CMapGenerator::loadConfig()
|
||||
{
|
||||
static const ResourcePath path("config/randomMap.json");
|
||||
JsonNode randomMapJson(path);
|
||||
JsonNode randomMapJson(JsonPath::builtin("config/randomMap.json"));
|
||||
|
||||
config.shipyardGuard = randomMapJson["waterZone"]["shipyard"]["value"].Integer();
|
||||
for(auto & treasure : randomMapJson["waterZone"]["treasure"].Vector())
|
||||
|
||||
Reference in New Issue
Block a user