1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-07 00:58:39 +02:00

Allow campaing sets to be modded

This commit is contained in:
George King
2025-03-11 20:04:31 +01:00
committed by GitHub
parent ee5cddb52c
commit 3d7f6922ad

View File

@ -60,6 +60,7 @@
#include "../../lib/GameConstants.h"
#include "../../lib/CRandomGenerator.h"
#include "../../lib/GameLibrary.h"
#include "../../lib/json/JsonUtils.h"
ISelectionScreenInfo * SEL = nullptr;
@ -305,7 +306,7 @@ CMenuEntry::CMenuEntry(CMenuScreen * parent, const JsonNode & config)
}
CMainMenuConfig::CMainMenuConfig()
: campaignSets(JsonPath::builtin("config/campaignSets.json"))
: campaignSets(JsonUtils::assembleFromFiles("config/campaignSets.json"))
, config(JsonPath::builtin("config/mainmenu.json"))
{
if (!config["scenario-selection"].isStruct())