support WARC archives version 1.50

This commit is contained in:
morkt 2015-07-12 15:39:28 +04:00
parent f20a22f56e
commit c09057b8b9

View File

@ -75,7 +75,7 @@ namespace GameRes.Formats.ShiinaRio
return null;
int version = file.View.ReadByte (7) - 0x30;
version = 100 + version * 10;
if (170 != version && 130 != version)
if (170 != version && 130 != version && 150 != version)
throw new NotSupportedException ("Not supported WARC version");
uint index_offset = 0xf182ad82u ^ file.View.ReadUInt32 (8);
if (index_offset >= file.MaxOffset)