aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/dataloader/Dataloader.cpp
diff options
context:
space:
mode:
author Joel Machens <ajmach6@gmail.com>2023-11-05 04:09:49 +0100
committer Joel Machens <ajmach6@gmail.com>2023-11-08 03:14:08 +0100
commit4e2e6e541f0dde406f90f668d6ff153f95d2aa45 (patch)
tree1af05925a4a5ac18430a0c2444e6edd2fe098b9b /src/openvic-simulation/dataloader/Dataloader.cpp
parentae2742113ec7283a2a5afa62f8bfd98a865c4208 (diff)
Implement Wargoal Loading
Diffstat (limited to 'src/openvic-simulation/dataloader/Dataloader.cpp')
-rw-r--r--src/openvic-simulation/dataloader/Dataloader.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/openvic-simulation/dataloader/Dataloader.cpp b/src/openvic-simulation/dataloader/Dataloader.cpp
index 6911de5..330005f 100644
--- a/src/openvic-simulation/dataloader/Dataloader.cpp
+++ b/src/openvic-simulation/dataloader/Dataloader.cpp
@@ -778,6 +778,7 @@ bool Dataloader::load_defines(GameManager& game_manager) const {
static const std::string production_types_file = "common/production_types.txt";
static const std::string religion_file = "common/religion.txt";
static const std::string leader_traits_file = "common/traits.txt";
+ static const std::string cb_types_file = "common/cb_types.txt";
bool ret = true;
@@ -872,6 +873,10 @@ bool Dataloader::load_defines(GameManager& game_manager) const {
Logger::error("Failed to load leader traits!");
ret = false;
}
+ if (!game_manager.get_military_manager().get_wargoal_manager().load_wargoal_file(parse_defines(lookup_file(cb_types_file)).get_file_node())) {
+ Logger::error("Failed to load wargoals!");
+ ret = false;
+ }
if (!game_manager.get_history_manager().load_bookmark_file(parse_defines(lookup_file(bookmark_file)).get_file_node())) {
Logger::error("Failed to load bookmarks!");
ret = false;