mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Remove UnsupportedRCTCFlagException
This commit is contained in:
@@ -3304,7 +3304,6 @@ STR_6154 :For security reasons, it is not recommended to run OpenRCT2 with el
|
||||
STR_6155 :Neither KDialog nor Zenity are installed. Please install one, or configure from the command line.
|
||||
STR_6156 :Name is reserved
|
||||
STR_6157 :Console
|
||||
STR_6158 :Failed to load this file…{NEWLINE}Incompatible RCTC version: {COMMA16}
|
||||
STR_6160 :{WINDOW_COLOUR_2}Available vehicles: {BLACK}{STRING}
|
||||
STR_6161 :Gridlines display toggle
|
||||
STR_6162 :Spinning Wild Mouse
|
||||
|
||||
@@ -715,20 +715,6 @@ namespace OpenRCT2
|
||||
auto windowManager = _uiContext->GetWindowManager();
|
||||
windowManager->OpenIntent(&intent);
|
||||
}
|
||||
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)
|
||||
{
|
||||
title_load();
|
||||
}
|
||||
auto windowManager = _uiContext->GetWindowManager();
|
||||
auto ft = Formatter();
|
||||
ft.Add<uint16_t>(e.Flag);
|
||||
windowManager->ShowError(STR_FAILED_TO_LOAD_IMCOMPATIBLE_RCTC_FLAG, STR_NONE, ft);
|
||||
}
|
||||
catch (const UnsupportedRideTypeException&)
|
||||
{
|
||||
Console::Error::WriteLine("Unable to open park: unsupported ride types");
|
||||
|
||||
@@ -83,17 +83,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class UnsupportedRCTCFlagException : public std::exception
|
||||
{
|
||||
public:
|
||||
uint8_t const Flag;
|
||||
|
||||
explicit UnsupportedRCTCFlagException(uint8_t flag)
|
||||
: Flag(flag)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
class UnsupportedRideTypeException : public std::exception
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -3469,8 +3469,6 @@ enum : uint16_t
|
||||
|
||||
STR_CONSOLE = 6157,
|
||||
|
||||
STR_FAILED_TO_LOAD_IMCOMPATIBLE_RCTC_FLAG = 6158,
|
||||
|
||||
STR_AVAILABLE_VEHICLES = 6160,
|
||||
|
||||
STR_SHORTCUT_GRIDLINES_DISPLAY_TOGGLE = 6161,
|
||||
|
||||
Reference in New Issue
Block a user