Skip to content

Commit

Permalink
minor fix to updi
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Dec 13, 2024
1 parent f22eeb5 commit 3f01359
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions VortexEngine/src/UPDI/updi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3f01359

Please sign in to comment.