mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Close #13386: Show a GUI error message if en-GB.txt cannot be loaded
This commit is contained in:
@@ -364,6 +364,8 @@ namespace OpenRCT2
|
|||||||
catch (const std::exception& eFallback)
|
catch (const std::exception& eFallback)
|
||||||
{
|
{
|
||||||
log_fatal("Failed to open fallback language: %s", eFallback.what());
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user