From 3f01359cfd27c1fb6f6ddb9a2654739ab9525d1a Mon Sep 17 00:00:00 2001 From: Dan Date: Thu, 12 Dec 2024 21:50:51 -0800 Subject: [PATCH] minor fix to updi --- VortexEngine/src/UPDI/updi.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/VortexEngine/src/UPDI/updi.cpp b/VortexEngine/src/UPDI/updi.cpp index 4e11260b35..c789baa7ae 100644 --- a/VortexEngine/src/UPDI/updi.cpp +++ b/VortexEngine/src/UPDI/updi.cpp @@ -112,8 +112,10 @@ bool UPDI::readHeader(ByteStream &header) // major.minor are the first two bytes of the buffer uint8_t major = header.data()[0]; uint8_t minor = header.data()[1]; - // LEGACY DUO! Old Storage format is used - m_legacyStorage = (major >= 1 && minor < 4); + // build was only added to this storage space later on + uint8_t build = (header.size() > 5) ? header.data()[5] : 0; + // LEGACY DUO! Old Storage format is used before 1.3.25 + m_legacyStorage = (major <= 1 && minor <= 3 && build <= 25); #endif return true; }