diff options
author | zaaarf <zaaarf@proton.me> | 2023-09-20 15:37:12 +0200 |
---|---|---|
committer | zaaarf <zaaarf@proton.me> | 2023-09-20 15:37:12 +0200 |
commit | 5e984cadca0b823bdb3017e99ec3111877970002 (patch) | |
tree | c7b461cedfa25ed487a1ced5123c1544c3db75ae /src/openvic-simulation/dataloader/Dataloader.cpp | |
parent | ad17b83930d83c3bbe5d58cf30c54fe88ac5d927 (diff) |
feat: added issue loading!
Diffstat (limited to 'src/openvic-simulation/dataloader/Dataloader.cpp')
-rw-r--r-- | src/openvic-simulation/dataloader/Dataloader.cpp | 5 |
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; |