mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 20:39:29 +08:00
(OpenPreviewStream): use Archive.OpenSeekableEntry method.
This commit is contained in:
parent
41c76ae50e
commit
8849508e41
@ -200,15 +200,7 @@ namespace GARbro.GUI
|
||||
}
|
||||
else
|
||||
{
|
||||
var file = preview.Archive.OpenEntry (preview.Entry);
|
||||
if (file.CanSeek)
|
||||
return file;
|
||||
using (file)
|
||||
{
|
||||
var memory = new MemoryStream();
|
||||
file.CopyTo (memory);
|
||||
return memory;
|
||||
}
|
||||
return preview.Archive.OpenSeekableEntry (preview.Entry);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user