mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(OpenBinaryEntry): use BinaryStream.FromStream.
This commit is contained in:
@@ -214,9 +214,7 @@ namespace GameRes
|
|||||||
public IBinaryStream OpenBinaryEntry (Entry entry)
|
public IBinaryStream OpenBinaryEntry (Entry entry)
|
||||||
{
|
{
|
||||||
var input = OpenSeekableEntry (entry);
|
var input = OpenSeekableEntry (entry);
|
||||||
if (input is IBinaryStream)
|
return BinaryStream.FromStream (input, entry.Name);
|
||||||
return input as IBinaryStream;
|
|
||||||
return new BinaryStream (input, entry.Name);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public ArchiveFileSystem CreateFileSystem ()
|
public ArchiveFileSystem CreateFileSystem ()
|
||||||
|
|||||||
Reference in New Issue
Block a user