From 009b5b8d332a1f3569b798b7597e1c0cea17d6cb Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 4 Jul 2024 21:49:46 +0200 Subject: [PATCH] (Android) Localization files are now always setup on startup --- es-app/src/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/es-app/src/main.cpp b/es-app/src/main.cpp index 110c4c0c9..18fdf4905 100644 --- a/es-app/src/main.cpp +++ b/es-app/src/main.cpp @@ -733,7 +733,6 @@ int main(int argc, char* argv[]) return 0; } - Utils::Localization::setLocale(); Scripting::fireEvent("startup"); #if defined(__EMSCRIPTEN__) @@ -1014,6 +1013,12 @@ int main(int argc, char* argv[]) } } +#if defined(__ANDROID__) + Utils::Platform::Android::setupLocalizationFiles(); +#endif + + Utils::Localization::setLocale(); + renderer = Renderer::getInstance(); window = Window::getInstance();