aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/dataloader/Dataloader.cpp
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2023-10-09 18:02:14 +0200
committer Spartan322 <Megacake1234@gmail.com>2023-10-13 16:43:34 +0200
commita93b0d8f268fbf04c09ee73e5b2923a610667fcf (patch)
tree01e8f55c5327ee3b0796bb1d1e6e616331abee13 /src/openvic-simulation/dataloader/Dataloader.cpp
parent32fdf7c38b2e56339a2fffa71a7a61a854759e2c (diff)
Add Bookmark Loading
Diffstat (limited to 'src/openvic-simulation/dataloader/Dataloader.cpp')
-rw-r--r--src/openvic-simulation/dataloader/Dataloader.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/openvic-simulation/dataloader/Dataloader.cpp b/src/openvic-simulation/dataloader/Dataloader.cpp
index 718218f..b9d7496 100644
--- a/src/openvic-simulation/dataloader/Dataloader.cpp
+++ b/src/openvic-simulation/dataloader/Dataloader.cpp
@@ -595,6 +595,7 @@ bool Dataloader::load_defines(GameManager& game_manager) const {
static const fs::path issues_file = "common/issues.txt";
static const fs::path production_types_file = "common/production_types.txt";
static const fs::path religion_file = "common/religion.txt";
+ static const fs::path bookmark_file = "common/bookmarks.txt";
bool ret = true;
@@ -662,6 +663,10 @@ bool Dataloader::load_defines(GameManager& game_manager) const {
Logger::error("Failed to load units!");
ret = false;
}
+ if (!game_manager.get_history_manager().load_bookmark_file(parse_defines(lookup_file(bookmark_file)).get_file_node())) {
+ Logger::error("Failed to load bookmarks!");
+ ret = false;
+ }
return ret;
}