瀏覽代碼

Added Silo 2.5 support

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.
Richard Mitton 8 年之前
父節點
當前提交
f602055da5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/SIBImporter.cpp

+ 1 - 1
code/SIBImporter.cpp

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