Browse Source

Allow campaing sets to be modded

George King 9 months ago
parent
commit
3d7f6922ad
1 changed files with 2 additions and 1 deletions
  1. 2 1
      client/mainmenu/CMainMenu.cpp

+ 2 - 1
client/mainmenu/CMainMenu.cpp

@@ -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())