mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Allow park files v0
This commit is contained in:
@@ -777,12 +777,12 @@ namespace OpenRCT2
|
||||
}
|
||||
auto windowManager = _uiContext->GetWindowManager();
|
||||
Formatter ft;
|
||||
if (e.TargetVersion < PARK_FILE_MIN_SUPPORTED_VERSION)
|
||||
/*if (e.TargetVersion < PARK_FILE_MIN_SUPPORTED_VERSION)
|
||||
{
|
||||
ft.Add<uint32_t>(e.TargetVersion);
|
||||
windowManager->ShowError(STR_ERROR_PARK_VERSION_TITLE, STR_ERROR_PARK_VERSION_TOO_OLD_MESSAGE, ft);
|
||||
}
|
||||
else
|
||||
else*/
|
||||
{
|
||||
ft.Add<uint32_t>(e.MinVersion);
|
||||
ft.Add<uint32_t>(e.TargetVersion);
|
||||
|
||||
@@ -109,7 +109,7 @@ namespace OpenRCT2
|
||||
void ThrowIfIncompatibleVersion()
|
||||
{
|
||||
const auto& header = _os->GetHeader();
|
||||
if (header.TargetVersion < PARK_FILE_MIN_SUPPORTED_VERSION || header.MinVersion > PARK_FILE_CURRENT_VERSION)
|
||||
if (/*header.TargetVersion < PARK_FILE_MIN_SUPPORTED_VERSION || */ header.MinVersion > PARK_FILE_CURRENT_VERSION)
|
||||
{
|
||||
throw UnsupportedVersionException(header.MinVersion, header.TargetVersion);
|
||||
}
|
||||
|
||||
@@ -14,7 +14,8 @@ namespace OpenRCT2
|
||||
constexpr uint32_t PARK_FILE_MIN_VERSION = 0x9;
|
||||
|
||||
// The minimum version that is backwards compatible with the current version.
|
||||
constexpr uint32_t PARK_FILE_MIN_SUPPORTED_VERSION = 0x1;
|
||||
// If this is increased beyond 0, uncomment the checks in ParkFile.cpp and Context.cpp!
|
||||
constexpr uint32_t PARK_FILE_MIN_SUPPORTED_VERSION = 0x0;
|
||||
|
||||
constexpr uint32_t PARK_FILE_MAGIC = 0x4B524150; // PARK
|
||||
|
||||
|
||||
Reference in New Issue
Block a user