aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/dataloader/Dataloader.cpp
diff options
context:
space:
mode:
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 45efaec..d0d9506 100644
--- a/src/openvic-simulation/dataloader/Dataloader.cpp
+++ b/src/openvic-simulation/dataloader/Dataloader.cpp
@@ -258,6 +258,7 @@ bool Dataloader::load_defines(GameManager& game_manager) const {
static const fs::path culture_file = "common/cultures.txt";
static const fs::path religion_file = "common/religion.txt";
static const fs::path ideology_file = "common/ideologies.txt";
+ static const fs::path issues_file = "common/issues.txt";
static const fs::path map_directory = "map";
bool ret = true;
@@ -286,6 +287,10 @@ bool Dataloader::load_defines(GameManager& game_manager) const {
Logger::error("Failed to load ideologies!");
ret = false;
}
+ if (!game_manager.issue_manager.load_issues_file(_parse_defines(lookup_file(issues_file)).get_file_node())) {
+ Logger::error("Failed to load issues!");
+ ret = false;
+ }
if (!_load_map_dir(game_manager, map_directory)) {
Logger::error("Failed to load map!");
ret = false;