diff options
Diffstat (limited to 'src/openvic-simulation/dataloader')
-rw-r--r-- | src/openvic-simulation/dataloader/Dataloader.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/openvic-simulation/dataloader/Dataloader.cpp b/src/openvic-simulation/dataloader/Dataloader.cpp index f49ae2d..8065367 100644 --- a/src/openvic-simulation/dataloader/Dataloader.cpp +++ b/src/openvic-simulation/dataloader/Dataloader.cpp @@ -668,6 +668,7 @@ bool Dataloader::load_defines(GameManager& game_manager) const { static constexpr std::string_view event_modifiers_file = "common/event_modifiers.txt"; static constexpr std::string_view static_modifiers_file = "common/static_modifiers.txt"; static constexpr std::string_view triggered_modifiers_file = "common/triggered_modifiers.txt"; + static constexpr std::string_view on_actions_file = "common/on_actions.txt"; bool ret = true; @@ -833,6 +834,12 @@ bool Dataloader::load_defines(GameManager& game_manager) const { Logger::error("Failed to load events!"); ret = false; } + if (!game_manager.get_event_manager().load_on_action_file( + parse_defines(lookup_file(on_actions_file)).get_file_node() + )) { + Logger::error("Failed to load on actions!"); + ret = false; + } return ret; } |