1
0
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:
Gymnasiast
2022-04-24 15:51:41 +02:00
parent 3c09e60273
commit fe9b211894
3 changed files with 5 additions and 4 deletions

View File

@@ -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);

View File

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

View File

@@ -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