mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Merge pull request #5540 from GeorgeK1ng/campaign_sets
Make campaign sets modable
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
#include "../../lib/TerrainHandler.h"
|
||||
#include "../../lib/UnlockGuard.h"
|
||||
#include "../../lib/GameLibrary.h"
|
||||
#include "../../lib/json/JsonUtils.h"
|
||||
|
||||
bool mapSorter::operator()(const std::shared_ptr<ElementInfo> aaa, const std::shared_ptr<ElementInfo> bbb)
|
||||
{
|
||||
@@ -962,7 +963,7 @@ void SelectionTab::handleUnsupportedSavegames(const std::vector<ResourcePath> &
|
||||
|
||||
void SelectionTab::parseCampaigns(const std::unordered_set<ResourcePath> & files)
|
||||
{
|
||||
auto campaignSets = JsonNode(JsonPath::builtin("config/campaignSets.json"));
|
||||
auto campaignSets = JsonUtils::assembleFromFiles("config/campaignSets.json");
|
||||
auto mainmenu = JsonNode(JsonPath::builtin("config/mainmenu.json"));
|
||||
|
||||
allItems.reserve(files.size());
|
||||
|
||||
Reference in New Issue
Block a user