IBinaryStream migration - continued.

This commit is contained in:
morkt
2016-10-15 12:21:12 +04:00
parent 503b734645
commit d0c1d5da01
39 changed files with 529 additions and 574 deletions

View File

@@ -39,12 +39,12 @@ namespace GameRes.Formats.Circus
OffsetMap = offset_map;
}
internal Stream OpenByOffset (uint offset)
internal IBinaryStream OpenByOffset (uint offset)
{
Entry entry;
if (!OffsetMap.TryGetValue (offset, out entry))
throw new FileNotFoundException();
return OpenEntry (entry);
return OpenBinaryEntry (entry);
}
}