Skip to content

Commit

Permalink
Check if library version works out
Browse files Browse the repository at this point in the history
  • Loading branch information
Werni2A committed Jun 1, 2024
1 parent bdd97f0 commit b793d47
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Streams/StreamLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ void StreamLibrary::read(FileFormatVersion aVersion)
// 2.0; 3.2; 3.3
const uint16_t versionMajor = ds.readUint16();
const uint16_t versionMinor = ds.readUint16();
const uint32_t version = versionMajor * 10 + versionMinor;

mCtx.mLogger.trace("version = {}.{}", versionMajor, versionMinor);

Expand Down Expand Up @@ -107,8 +108,8 @@ void StreamLibrary::read(FileFormatVersion aVersion)

uint32_t strLstLen = 0U;

// @todo Versions were chosen randomly
if(aVersion == FileFormatVersion::A)
// @todo Version were chosen randomly
if(version < 30)
{
strLstLen = ds.readUint16();
}
Expand Down

0 comments on commit b793d47

Please sign in to comment.