aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/dataloader/Dataloader.cpp
diff options
context:
space:
mode:
author Conor <conoboy137@hotmail.co.uk>2024-03-02 02:22:43 +0100
committer GitHub <noreply@github.com>2024-03-02 02:22:43 +0100
commit2c892c99a6647be15ef23cabf6cc40f08769283d (patch)
tree87613ee327ddfbc8bbcc1c3ebf725837d0b724bf /src/openvic-simulation/dataloader/Dataloader.cpp
parentc44e76b4f340bb9e667dca7afd7468c78b9de967 (diff)
parent35c6417af51e919194043af65870420656f48ae3 (diff)
Merge pull request #151 from OpenVicProject/tech-improvements
Cleaned up tech loading and added tech lists for areas
Diffstat (limited to 'src/openvic-simulation/dataloader/Dataloader.cpp')
-rw-r--r--src/openvic-simulation/dataloader/Dataloader.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/openvic-simulation/dataloader/Dataloader.cpp b/src/openvic-simulation/dataloader/Dataloader.cpp
index b7ccba3..9df9725 100644
--- a/src/openvic-simulation/dataloader/Dataloader.cpp
+++ b/src/openvic-simulation/dataloader/Dataloader.cpp
@@ -426,15 +426,15 @@ bool Dataloader::_load_technologies(GameManager& game_manager) {
const v2script::Parser technology_file_parser = parse_defines(lookup_file(technology_file));
- if (!technology_manager.load_technology_file_areas(technology_file_parser.get_file_node())) {
- Logger::error("Failed to load technology areas and folders!");
+ if (!technology_manager.load_technology_file_folders_and_areas(technology_file_parser.get_file_node())) {
+ Logger::error("Failed to load technology folders and areas!");
ret = false;
}
ModifierManager& modifier_manager = game_manager.get_modifier_manager();
if (!technology_manager.generate_modifiers(modifier_manager)) {
- Logger::error("Failed to generate technollogy-based modifiers!");
+ Logger::error("Failed to generate technology-based modifiers!");
ret = false;
}
@@ -460,6 +460,9 @@ bool Dataloader::_load_technologies(GameManager& game_manager) {
}
technology_manager.lock_technologies();
+
+ ret &= technology_manager.generate_technology_lists();
+
return ret;
}