mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Use ResourcePath for referencing texts and json's
This commit is contained in:
@@ -804,7 +804,7 @@ void CGameState::removeHeroPlaceholders()
|
||||
void CGameState::initStartingResources()
|
||||
{
|
||||
logGlobal->debug("\tSetting up resources");
|
||||
const JsonNode config(ResourcePath("config/startres.json"));
|
||||
const JsonNode config(JsonPath::builtin("config/startres.json"));
|
||||
const JsonVector &vector = config["difficulty"].Vector();
|
||||
const JsonNode &level = vector[scenarioOps->difficulty];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user