From 3c03fa308d514fa6ca13c1fff95bec4f169a7a0b Mon Sep 17 00:00:00 2001 From: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com> Date: Fri, 31 Jan 2025 23:24:50 +0100 Subject: [PATCH] Improve warning if language files cannot be loaded on Android --- src/openrct2/Context.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index dabefb82f9..8cce5815ec 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -439,7 +439,13 @@ namespace OpenRCT2 { LOG_FATAL("Failed to open fallback language: %s", eFallback.what()); auto uiContext = GetContext()->GetUiContext(); +#ifdef __ANDROID__ + uiContext->ShowMessageBox( + "You need to copy some additional files to finish your install.\n\nSee " + "https://docs.openrct2.io/en/latest/installing/installing-on-android.html for more details."); +#else uiContext->ShowMessageBox("Failed to load language file!\nYour installation may be damaged."); +#endif return false; } }