aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/LoadGameCompatibility.cpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-09-23 22:53:40 +0200
committer GitHub <noreply@github.com>2023-09-23 22:53:40 +0200
commit0b4c30aa02c3ec1dacfc3ac190af4733531753ea (patch)
tree41aacf220a1f7085c81f2b0f522ad9f36991947b /extension/src/openvic-extension/LoadGameCompatibility.cpp
parentd56941e60016bf73587c63a36ac5ca9da3f6023e (diff)
parent6e2ba19d77c36ddc4767a20de040489b574ae0c3 (diff)
Merge pull request #157 from OpenVicProject/more-dataloading
More dataloading
Diffstat (limited to 'extension/src/openvic-extension/LoadGameCompatibility.cpp')
-rw-r--r--extension/src/openvic-extension/LoadGameCompatibility.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/extension/src/openvic-extension/LoadGameCompatibility.cpp b/extension/src/openvic-extension/LoadGameCompatibility.cpp
index e8e3314..b696315 100644
--- a/extension/src/openvic-extension/LoadGameCompatibility.cpp
+++ b/extension/src/openvic-extension/LoadGameCompatibility.cpp
@@ -5,6 +5,7 @@
#include <openvic-simulation/utility/BMP.hpp>
+#include "openvic-extension/LoadLocalisation.hpp"
#include "openvic-extension/Utilities.hpp"
using namespace godot;
@@ -83,7 +84,6 @@ Error GameSingleton::load_defines_compatibility_mode(PackedStringArray const& fi
err = FAILED;
}
- game_manager.map.lock_regions();
if (_load_terrain_variants_compatibility_mode(
std_to_godot_string(dataloader.lookup_file(terrain_image_file).string()),
std_to_godot_string(dataloader.lookup_file(terrain_texture_file).string())
@@ -102,6 +102,11 @@ Error GameSingleton::load_defines_compatibility_mode(PackedStringArray const& fi
UtilityFunctions::push_error("Failed to hardcoded defines!");
err = FAILED;
}
+ if (!dataloader.load_localisation_files(LoadLocalisation::add_message)) {
+ UtilityFunctions::push_error("Failed to load localisation!");
+ err = FAILED;
+ }
+
return err;
}