mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
check whether "tex" is a directory.
This commit is contained in:
@@ -59,6 +59,8 @@ namespace GameRes.Formats.Malie
|
|||||||
public override ImageMetaData ReadMetaData (Stream stream)
|
public override ImageMetaData ReadMetaData (Stream stream)
|
||||||
{
|
{
|
||||||
var tex = VFS.FindFile ("tex");
|
var tex = VFS.FindFile ("tex");
|
||||||
|
if (!(tex is SubDirEntry))
|
||||||
|
return null;
|
||||||
using (var reader = new StreamReader (stream, Encoding.UTF8, false, 2048, true))
|
using (var reader = new StreamReader (stream, Encoding.UTF8, false, 2048, true))
|
||||||
{
|
{
|
||||||
reader.ReadLine(); // skip signature
|
reader.ReadLine(); // skip signature
|
||||||
|
|||||||
Reference in New Issue
Block a user