1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Fix resource creation

This commit is contained in:
Ivan Savenko
2023-09-04 16:16:00 +03:00
parent 9cfcf5ea19
commit 6a260a60cf
10 changed files with 13 additions and 12 deletions

View File

@ -35,7 +35,7 @@ static JsonNode loadModSettings(const JsonPath & path)
return JsonNode(path);
}
// Probably new install. Create initial configuration
CResourceHandler::get("local")->createResource(path);
CResourceHandler::get("local")->createResource(path.getOriginalName() + ".json");
return JsonNode();
}