check whether "tex" is a directory.

This commit is contained in:
morkt 2015-09-05 10:03:34 +04:00
parent 9be57a39ed
commit 67b24e5823

View File

@ -59,6 +59,8 @@ namespace GameRes.Formats.Malie
public override ImageMetaData ReadMetaData (Stream stream)
{
var tex = VFS.FindFile ("tex");
if (!(tex is SubDirEntry))
return null;
using (var reader = new StreamReader (stream, Encoding.UTF8, false, 2048, true))
{
reader.ReadLine(); // skip signature