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:
@ -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())
|
||||
|
Reference in New Issue
Block a user