diff options
author | zaaarf <zaaarf@proton.me> | 2023-12-01 23:26:23 +0100 |
---|---|---|
committer | zaaarf <zaaarf@proton.me> | 2023-12-01 23:26:23 +0100 |
commit | 76ddf81044f9ff63e82fc188c0d6aac9616228ce (patch) | |
tree | 7138640edd95f468115f2732e45c86ae5181d7f7 /src/openvic-simulation/dataloader/Dataloader.cpp | |
parent | 2d76e0766f0d65ffd8c9eb19eaec705445f91af0 (diff) |
feat: rebel type parsing
Diffstat (limited to 'src/openvic-simulation/dataloader/Dataloader.cpp')
-rw-r--r-- | src/openvic-simulation/dataloader/Dataloader.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/openvic-simulation/dataloader/Dataloader.cpp b/src/openvic-simulation/dataloader/Dataloader.cpp index f86fab6..7ffd68a 100644 --- a/src/openvic-simulation/dataloader/Dataloader.cpp +++ b/src/openvic-simulation/dataloader/Dataloader.cpp @@ -853,6 +853,7 @@ bool Dataloader::load_defines(GameManager& game_manager) const { static const std::string event_modifiers_file = "common/event_modifiers.txt"; static const std::string static_modifiers_file = "common/static_modifiers.txt"; static const std::string triggered_modifiers_file = "common/triggered_modifiers.txt"; + static const std::string rebel_types_file = "common/rebel_types.txt"; bool ret = true; @@ -999,6 +1000,14 @@ bool Dataloader::load_defines(GameManager& game_manager) const { Logger::error("Failed to load countries!"); ret = false; } + if (!game_manager.get_politics_manager().get_rebel_manager().load_rebels_file( + game_manager.get_politics_manager().get_ideology_manager(), + game_manager.get_politics_manager().get_government_type_manager(), + parse_defines(lookup_file(rebel_types_file)).get_file_node() + )) { + Logger::error("Failed to load rebel types!"); + ret = false; + } if (!_load_history(game_manager, false)) { Logger::error("Failed to load history!"); ret = false; |