From f602055da5e63675913bf3747b1b754dae31e0cd Mon Sep 17 00:00:00 2001 From: Richard Mitton Date: Fri, 15 Sep 2017 12:40:38 -0700 Subject: [PATCH] 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. --- code/SIBImporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/SIBImporter.cpp b/code/SIBImporter.cpp index 3fa66bd..4ae2ab7 100644 --- a/code/SIBImporter.cpp +++ b/code/SIBImporter.cpp @@ -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." ); } } -- 2.7.4