use VFS.GetDirectoryName() method.

This commit is contained in:
morkt
2016-05-20 04:07:23 +04:00
parent 1bd3799372
commit 41b9dd9a54
5 changed files with 5 additions and 5 deletions

View File

@@ -297,7 +297,7 @@ namespace GameRes.Formats.Entis
if ((meta.BPP + 7) / 8 < 3)
throw new InvalidFormatException();
ref_file = VFS.CombinePath (Path.GetDirectoryName (meta.FileName), ref_file);
ref_file = VFS.CombinePath (VFS.GetDirectoryName (meta.FileName), ref_file);
using (var ref_src = VFS.OpenSeekableStream (ref_file))
{
var ref_info = ReadMetaData (ref_src) as EriMetaData;