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

This commit is contained in:
Łukasz Pękalski 2020-12-16 13:21:07 +01:00 committed by GitHub
parent 5b24a9accc
commit af6512da19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
}
}