Allow park files v0

This commit is contained in:
Gymnasiast committed 2022-04-24 16:12:25 +02:00
1 parent 3c09e60273
commit fe9b211894
3 files changed
+5 -4

No files matched your search

+2 -2
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);
+1 -1
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);
}
+2 -1
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