Added Silo 2.5 support
authorRichard Mitton <rmitton@users.noreply.github.com>
Fri, 15 Sep 2017 19:40:38 +0000 (12:40 -0700)
committerRichard Mitton <rmitton@users.noreply.github.com>
Fri, 15 Sep 2017 19:40:38 +0000 (12:40 -0700)
Silo 2.5 bumps the version number of SIB files for no apparent reason. Doesn't appear to be any other changes to the file format.

code/SIBImporter.cpp

index 3fa66bd..4ae2ab7 100644 (file)
@@ -827,7 +827,7 @@ static void ReadInstance(SIB* sib, StreamReaderLE* stream)
 static void CheckVersion(StreamReaderLE* stream)
 {
     uint32_t version = stream->GetU4();
-    if ( version != 1 ) {
+    if ( version < 1 || version > 2 ) {
         throw DeadlyImportError( "SIB: Unsupported file version." );
     }
 }