Close #13386: Show a GUI error message if en-GB.txt cannot be loaded

This commit is contained in:
Łukasz Pękalski authored and GitHub committed 2020-12-16 13:21:07 +01:00
1 parent 5b24a9accc
commit af6512da19
1 file changed
+2
+2
View File
@@ -364,6 +364,8 @@ namespace OpenRCT2
catch (const std::exception& eFallback)
{
log_fatal("Failed to open fallback language: %s", eFallback.what());
auto uiContext = GetContext()->GetUiContext();
uiContext->ShowMessageBox("Failed to load language file!\nYour installation may be damaged.");
return false;
}
}