diff options
author | Hop311 <Hop3114@gmail.com> | 2023-12-14 08:37:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-14 08:37:35 +0100 |
commit | e6b455b8924948761dbd792756303efe18875c6d (patch) | |
tree | 36fcb92720eabeb18554aa934cac86ed9a9609ed /src/openvic-simulation/dataloader | |
parent | df7c04079a7b5936e1701f37a845199bac94b1fb (diff) | |
parent | ddf75e39df90aedb25c32009211f56396865d28c (diff) |
Merge pull request #92 from OpenVicProject/dataloading-onactions
on_action dataloading
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 c23a09b..97b5592 100644 --- a/src/openvic-simulation/dataloader/Dataloader.cpp +++ b/src/openvic-simulation/dataloader/Dataloader.cpp @@ -709,6 +709,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; @@ -871,6 +872,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; } |