From 76ddf81044f9ff63e82fc188c0d6aac9616228ce Mon Sep 17 00:00:00 2001 From: zaaarf Date: Fri, 1 Dec 2023 23:26:23 +0100 Subject: feat: rebel type parsing --- src/openvic-simulation/dataloader/Dataloader.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/openvic-simulation/dataloader/Dataloader.cpp') 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; -- cgit v1.2.3-56-ga3b1