Log errors to stderr if park load fails

This commit is contained in:
Ted John 2022-05-15 19:58:30 +01:00 committed by GitHub
parent 77d7a3a52f
commit ed00228e58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -732,6 +732,8 @@ namespace OpenRCT2
}
catch (const ObjectLoadException& e)
{
Console::Error::WriteLine("Unable to open park: missing objects");
// If loading the SV6 or SV4 failed return to the title screen if requested.
if (loadTitleScreenFirstOnFail)
{
@ -749,6 +751,8 @@ namespace OpenRCT2
}
catch (const UnsupportedRCTCFlagException& e)
{
Console::Error::WriteLine("Unable to open park: unsupported RCT classic feature");
// If loading the SV6 or SV4 failed return to the title screen if requested.
if (loadTitleScreenFirstOnFail)
{
@ -761,6 +765,8 @@ namespace OpenRCT2
}
catch (const UnsupportedRideTypeException&)
{
Console::Error::WriteLine("Unable to open park: unsupported ride types");
// If loading the SV6 or SV4 failed return to the title screen if requested.
if (loadTitleScreenFirstOnFail)
{
@ -771,6 +777,8 @@ namespace OpenRCT2
}
catch (const UnsupportedVersionException& e)
{
Console::Error::WriteLine("Unable to open park: unsupported park version");
if (loadTitleScreenFirstOnFail)
{
title_load();